Stats page
This commit is contained in:
@@ -17,6 +17,11 @@ class window.Ajax
|
||||
_ajax.setTitle 'About'
|
||||
false
|
||||
|
||||
loadStatPage: ->
|
||||
$('#content').load '/stat/'
|
||||
_ajax.setTitle 'Statistics'
|
||||
false
|
||||
|
||||
setArchor: (anchor) ->
|
||||
@referer = this.getAnchor()
|
||||
window.location.hash = '#' +anchor
|
||||
@@ -41,6 +46,8 @@ class window.Ajax
|
||||
_settings.loadSettingsPage()
|
||||
else if _ajax.getAnchor().match /\/about\//
|
||||
_ajax.loadAboutPage()
|
||||
else if _ajax.getAnchor().match /\/stat\//
|
||||
_ajax.loadStatPage()
|
||||
else
|
||||
_ajax.loadIndexPage();
|
||||
false
|
||||
|
||||
@@ -35,6 +35,9 @@ $ ->
|
||||
$('.about').live 'click', ->
|
||||
_ajax.go '/about/'
|
||||
false
|
||||
$('.stat').live 'click', ->
|
||||
_ajax.go '/stat/'
|
||||
false
|
||||
$('body').live 'click', ->
|
||||
$('.dropdown-toggle, .menu').parent('li').removeClass('open')
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user