Might as well add a close button

This commit is contained in:
Jordan Bates 2013-05-06 02:58:00 -07:00
parent 4f3dd6fc8a
commit e240891eb1
5 changed files with 17 additions and 7 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

@ -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 {

View File

@ -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