About page, index page[en]

This commit is contained in:
Gregory Eremin
2011-09-19 16:31:05 +04:00
parent 215c00a1a8
commit 9305237bac
7 changed files with 37 additions and 7 deletions
+4 -6
View File
@@ -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', ->