Make the return button work on Catalog view.

This commit is contained in:
Zixaphir 2014-03-10 08:04:24 -07:00
parent a8baffa972
commit a821a01fbe
4 changed files with 25 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -116,7 +116,12 @@ Index =
$.on d, 'scroll', Index.scroll
$.on @pagelist, 'click', @cb.pageNav
$.on $('#returnlink a', @navLinks), 'click', Navigate.navigate
$.on $('#returnlink a', @navLinks), 'click', (e) ->
if g.VIEW is 'index'
Index.setIndexMode Conf['Previous Index Mode']
e.preventDefault()
return
Navigate.navigate.call @, e
if g.VIEW is 'index'
@update()

View File

@ -484,7 +484,7 @@ div.center:not(.ad-cnt) {
:root.index-loading .pagelist {
display: none;
}
.index #returnlink {
.index:not(.catalog-mode) #returnlink {
display: none;
}
#index-search {