Small fixes

This commit is contained in:
Jordan Bates 2013-05-06 02:42:27 -07:00
parent 06900d0a21
commit 2a8c7c8ba3
5 changed files with 16 additions and 13 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -50,6 +50,9 @@ a[href="javascript:;"] {
#boardNavDesktop { #boardNavDesktop {
display: none !important; display: none !important;
} }
a:active {
outline: none;
}
/* 4chan style fixes */ /* 4chan style fixes */
.opContainer, .op { .opContainer, .op {

View File

@ -1,7 +1,7 @@
ThreadWatcher = ThreadWatcher =
init: -> init: ->
return unless Conf['Thread Watcher'] return unless Conf['Thread Watcher']
@sc = sc = $.el 'a', @shortcut = sc = $.el 'a',
textContent: 'Watcher' textContent: 'Watcher'
id: 'watcher-link' id: 'watcher-link'
href: 'javascript:;' href: 'javascript:;'
@ -13,9 +13,9 @@ ThreadWatcher =
$.on d, 'QRPostSuccessful', @cb.post $.on d, 'QRPostSuccessful', @cb.post
$.sync 'WatchedThreads', @refresh $.sync 'WatchedThreads', @refresh
$.on sc, 'click', @toggleWatcher $.on sc, 'click', @toggleWatcher
Header.addShortcut sc Header.addShortcut sc
$.ready => $.ready =>
ThreadWatcher.refresh() ThreadWatcher.refresh()
$.add d.body, ThreadWatcher.dialog $.add d.body, ThreadWatcher.dialog
@ -55,7 +55,7 @@ ThreadWatcher =
div = $.el 'div' div = $.el 'div'
$.add div, [x, $.tn(' '), link] $.add div, [x, $.tn(' '), link]
nodes.push div nodes.push div
$.rmAll ThreadWatcher.dialog $.rmAll ThreadWatcher.dialog
$.add ThreadWatcher.dialog, nodes $.add ThreadWatcher.dialog, nodes
@ -69,7 +69,7 @@ ThreadWatcher =
return return
toggleWatcher: -> toggleWatcher: ->
$.toggleClass ThreadWatcher.sc, 'disabled' $.toggleClass ThreadWatcher.shortcut, 'disabled'
if ThreadWatcher.dialog.hidden if ThreadWatcher.dialog.hidden
ThreadWatcher.dialog.hidden = false ThreadWatcher.dialog.hidden = false
else else