More logging, typo fixes

This commit is contained in:
Piotr Mitros
2012-01-01 23:00:22 -05:00
parent 20e0bdef9f
commit ca535dc90a
4 changed files with 15 additions and 9 deletions

View File

@@ -1 +1,7 @@
$("#accordion").accordion({active:${ active_chapter }});
$('.ui-accordion').bind('accordionchange', function(event, ui) {
var event_data = {'newheader':ui.newHeader.text(),
'oldheader':ui.oldHeader.text()};
log_event('accordion', event_data);
});

View File

@@ -76,7 +76,7 @@ $(function() {
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile"><b>Profile</b></a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/s/help.html">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</td></tr><tr><td valign=top>
</td></tr></table>

View File

@@ -20,16 +20,16 @@ function goto_page(n) {
};
function prev_page() {
page=page-1;
if(page<1) page=1;
goto_page(page);
var newpage=page-1;
if(newpage<1) newpage=1;
goto_page(newpage);
log_event("book", {"type":"prevpage","new":page});
}
function next_page() {
page=page+1;
if(page>1764) page=1764;
goto_page(page);
var newpage=page+1;
if(newpage>1764) newpage=1764;
goto_page(newpage);
log_event("book", {"type":"nextpage","new":page});
}
@@ -48,7 +48,7 @@ function next_page() {
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile">Profile</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/s/help.html">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</div>
<table>

View File

@@ -21,7 +21,7 @@
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile">Profile</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/s/help.html">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</div>
<div>