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 $.rm $ '#navtopright', fullBoardList
$.prepend d.body, $.id('navtopright') settings = $.id('navtopright')
$.add d.body, Header.menuButton $.prepend d.body, settings
$.add settings, Header.menuButton
$.add boardList, fullBoardList $.add boardList, fullBoardList
$.add Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle] $.add Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]

View File

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

View File

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

View File

@ -1,9 +1,9 @@
FappeTyme = FappeTyme =
init: -> 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', el = $.el 'a',
href: 'javascript:;' href: 'javascript:;'
id: 'fappeTyme' id: 'fappeTyme'
title: 'Fappe Tyme' title: 'Fappe Tyme'
$.on el, 'click', FappeTyme.toggle $.on el, 'click', FappeTyme.toggle