About page, index page[en]
This commit is contained in:
@@ -9,12 +9,12 @@ class window.Ajax
|
||||
|
||||
loadIndexPage: ->
|
||||
$('#content').load '/greetings/'
|
||||
_ajax.setTitle ''
|
||||
false
|
||||
|
||||
loadAboutPage: ->
|
||||
$.get '/templates/about.html', (data) ->
|
||||
_page.renderTextpage data
|
||||
_ajax.setTitle 'About'
|
||||
$('#content').load '/about/'
|
||||
_ajax.setTitle 'About'
|
||||
false
|
||||
|
||||
setArchor: (anchor) ->
|
||||
@@ -34,14 +34,12 @@ class window.Ajax
|
||||
detectPage: () ->
|
||||
if m = _ajax.getAnchor().match /\/artist\/(.+)\//
|
||||
_search.loadArtistData m[1]
|
||||
else if _ajax.getAnchor().match /\//
|
||||
_ajax.loadIndexPage();
|
||||
else if _ajax.getAnchor().match /\/settings\//
|
||||
_settings.loadSettingsPage()
|
||||
else if _ajax.getAnchor().match /\/about\//
|
||||
_ajax.loadAboutPage()
|
||||
else
|
||||
#_ajax.loadSearchPage()
|
||||
_ajax.loadIndexPage();
|
||||
false
|
||||
|
||||
$(window).bind 'hashchange', ->
|
||||
|
||||
Reference in New Issue
Block a user