1
0
Fork 0

Break detectPage loop

This commit is contained in:
magnolia-fan 2011-11-27 01:16:10 +04:00
parent 78be17fd58
commit 589f0512bf
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
class window.Ajax
referer: false
previous_page: null
load404Page: ->
$.get '/404.html', (data) ->
@ -40,6 +41,9 @@ class window.Ajax
false
detectPage: () ->
return false if @previous_page == _ajax.getAnchor()
@previous_page = _ajax.getAnchor()
if m = _ajax.getAnchor().match /\/artist\/(.+)\//
_search.loadArtistData m[1]
else if _ajax.getAnchor().match /\/settings\//