Might as well add a close button
This commit is contained in:
parent
4f3dd6fc8a
commit
e240891eb1
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
@ -442,6 +442,12 @@ a.hide-announcement {
|
||||
#watcher a {
|
||||
text-decoration: none;
|
||||
}
|
||||
#watcher .move>.close {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 0px;
|
||||
padding: 0px 4px;
|
||||
}
|
||||
|
||||
/* Thread Stats */
|
||||
#thread-stats {
|
||||
|
||||
@ -8,11 +8,12 @@ ThreadWatcher =
|
||||
className: 'disabled'
|
||||
|
||||
@dialog = UI.dialog 'watcher', 'top: 50px; left: 0px;',
|
||||
'<div class=move>Thread Watcher</div>'
|
||||
'<div class=move>Thread Watcher<a class=close href=javascript:;>x</a></div>'
|
||||
|
||||
$.on d, 'QRPostSuccessful', @cb.post
|
||||
$.sync 'WatchedThreads', @refresh
|
||||
$.on sc, 'click', @toggleWatcher
|
||||
$.on $('.move>.close', ThreadWatcher.dialog), 'click', @toggleWatcher
|
||||
|
||||
Header.addShortcut sc
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user