Fix FappeTyme always enabled.

This commit is contained in:
Zixaphir 2013-05-08 06:06:57 -07:00
parent 27e17cf718
commit 4d365b825d
8 changed files with 41 additions and 23 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -89,8 +89,9 @@ Header =
$.rm $ '#navtopright', fullBoardList
$.prepend d.body, $.id('navtopright')
$.add d.body, Header.menuButton
settings = $.id('navtopright')
$.prepend d.body, settings
$.add settings, Header.menuButton
$.add boardList, fullBoardList
$.add Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]

View File

@ -11,7 +11,8 @@ Settings =
return unless Main.isThisPageLegit()
# Wait for #boardNavMobile instead of #boardNavDesktop,
# it might be incomplete otherwise.
$.add d.body, link
$.asap (-> $.id 'boardNavMobile'), ->
$.add $.id('navtopright'), link
$.get 'previousversion', null, (item) ->
if previous = item['previousversion']

View File

@ -58,6 +58,7 @@ body > hr {
.cataloglink,
.navLinks,
a[style="cursor: pointer; float: right;"] {
z-index: 7;
position: fixed;
top: 100%;
left: 100%;

View File

@ -1,9 +1,9 @@
FappeTyme =
init: ->
return if not Conf['Fappe Tyme'] and (g.VIEW is 'catalog' or g.BOARD is 'f')
return if !Conf['Fappe Tyme'] or (g.VIEW is 'catalog' or g.BOARD is 'f')
el = $.el 'a',
href: 'javascript:;'
id: 'fappeTyme'
id: 'fappeTyme'
title: 'Fappe Tyme'
$.on el, 'click', FappeTyme.toggle