This commit is contained in:
seaweedchan 2013-05-11 04:58:24 -07:00
parent f0f1fdb0b5
commit c158e0475a
5 changed files with 17 additions and 25 deletions

View File

@ -183,8 +183,7 @@
'Thread Stats': [true, 'Display reply and image count.'],
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
'Thread Watcher': [true, 'Bookmark threads.'],
'Fixed Thread Watcher': [true, 'Thread watcher scrolls with you on the page'],
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
'Toggleable Thread Watcher': [false, 'Adds a shortcut for the thread watcher, and fixes the watcher to the page.'],
'Auto Watch': [true, 'Automatically watch threads you start.'],
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
},
@ -7359,14 +7358,14 @@
$.sync('WatchedThreads', this.refresh);
$.on(sc, 'click', this.toggleWatcher);
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
if (Conf['Fixed Thread Watcher']) {
if (Conf['Toggleable Thread Watcher']) {
Header.addShortcut(sc);
$.addClass(doc, 'fixed-watcher');
}
Header.addShortcut(sc);
$.ready(function() {
ThreadWatcher.refresh();
$.add(d.body, ThreadWatcher.dialog);
if (!Conf['Persistent Thread Watcher']) {
if (Conf['Toggleable Thread Watcher']) {
return ThreadWatcher.dialog.hidden = true;
}
});

View File

@ -183,8 +183,7 @@
'Thread Stats': [true, 'Display reply and image count.'],
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
'Thread Watcher': [true, 'Bookmark threads.'],
'Fixed Thread Watcher': [true, 'Thread watcher scrolls with you on the page'],
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
'Toggleable Thread Watcher': [false, 'Adds a shortcut for the thread watcher, and fixes the watcher to the page.'],
'Auto Watch': [true, 'Automatically watch threads you start.'],
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
},
@ -7368,14 +7367,14 @@
$.sync('WatchedThreads', this.refresh);
$.on(sc, 'click', this.toggleWatcher);
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
if (Conf['Fixed Thread Watcher']) {
if (Conf['Toggleable Thread Watcher']) {
Header.addShortcut(sc);
$.addClass(doc, 'fixed-watcher');
}
Header.addShortcut(sc);
$.ready(function() {
ThreadWatcher.refresh();
$.add(d.body, ThreadWatcher.dialog);
if (!Conf['Persistent Thread Watcher']) {
if (Conf['Toggleable Thread Watcher']) {
return ThreadWatcher.dialog.hidden = true;
}
});

View File

@ -165,8 +165,7 @@
'Thread Stats': [true, 'Display reply and image count.'],
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
'Thread Watcher': [true, 'Bookmark threads.'],
'Fixed Thread Watcher': [true, 'Thread watcher scrolls with you on the page'],
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
'Toggleable Thread Watcher': [false, 'Adds a shortcut for the thread watcher, and fixes the watcher to the page.'],
'Auto Watch': [true, 'Automatically watch threads you start.'],
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
},
@ -7346,14 +7345,14 @@
$.sync('WatchedThreads', this.refresh);
$.on(sc, 'click', this.toggleWatcher);
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
if (Conf['Fixed Thread Watcher']) {
if (Conf['Toggleable Thread Watcher']) {
Header.addShortcut(sc);
$.addClass(doc, 'fixed-watcher');
}
Header.addShortcut(sc);
$.ready(function() {
ThreadWatcher.refresh();
$.add(d.body, ThreadWatcher.dialog);
if (!Conf['Persistent Thread Watcher']) {
if (Conf['Toggleable Thread Watcher']) {
return ThreadWatcher.dialog.hidden = true;
}
});

View File

@ -233,13 +233,9 @@ Config =
true
'Bookmark threads.'
]
'Fixed Thread Watcher': [
true
'Thread watcher scrolls with you on the page'
]
'Persistent Thread Watcher': [
'Toggleable Thread Watcher': [
false
'Opens the thread watcher by default.'
'Adds a shortcut for the thread watcher, and fixes the watcher to the page.'
]
'Auto Watch': [
true

View File

@ -15,15 +15,14 @@ ThreadWatcher =
$.on sc, 'click', @toggleWatcher
$.on $('.move>.close', ThreadWatcher.dialog), 'click', @toggleWatcher
if Conf['Fixed Thread Watcher']
if Conf['Toggleable Thread Watcher']
Header.addShortcut sc
$.addClass doc, 'fixed-watcher'
Header.addShortcut sc
$.ready ->
ThreadWatcher.refresh()
$.add d.body, ThreadWatcher.dialog
unless Conf['Persistent Thread Watcher']
if Conf['Toggleable Thread Watcher']
ThreadWatcher.dialog.hidden = true
Thread::callbacks.push