This commit is contained in:
Jordan Bates 2013-05-07 20:28:34 -07:00
parent 5474296167
commit 015bc15641
6 changed files with 26 additions and 8 deletions

View File

@ -1,3 +1,7 @@
seaweedchan:
- Add `Centered links` option for header
- Add `Persistent Thread Watcher` option
### 1.1.15 - 2013-05-07
seaweedchan:
- Fix update and download urls for Greasemonkey

View File

@ -181,6 +181,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.'],
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
'Auto Watch': [true, 'Automatically watch threads you start.'],
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
},
@ -7261,7 +7262,7 @@
textContent: 'Watcher',
id: 'watcher-link',
href: 'javascript:;',
className: 'disabled'
className: "" + (Conf['Persistent Thread Watcher'] ? '' : 'disabled')
});
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
$.on(d, 'QRPostSuccessful', this.cb.post);
@ -7272,7 +7273,9 @@
$.ready(function() {
ThreadWatcher.refresh();
$.add(d.body, ThreadWatcher.dialog);
return ThreadWatcher.dialog.hidden = true;
if (!Conf['Persistent Thread Watcher']) {
return ThreadWatcher.dialog.hidden = true;
}
});
return Thread.prototype.callbacks.push({
name: 'Thread Watcher',

View File

@ -181,6 +181,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.'],
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
'Auto Watch': [true, 'Automatically watch threads you start.'],
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
},
@ -7282,7 +7283,7 @@
textContent: 'Watcher',
id: 'watcher-link',
href: 'javascript:;',
className: 'disabled'
className: "" + (Conf['Persistent Thread Watcher'] ? '' : 'disabled')
});
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
$.on(d, 'QRPostSuccessful', this.cb.post);
@ -7293,7 +7294,9 @@
$.ready(function() {
ThreadWatcher.refresh();
$.add(d.body, ThreadWatcher.dialog);
return ThreadWatcher.dialog.hidden = true;
if (!Conf['Persistent Thread Watcher']) {
return ThreadWatcher.dialog.hidden = true;
}
});
return Thread.prototype.callbacks.push({
name: 'Thread Watcher',

View File

@ -164,6 +164,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.'],
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
'Auto Watch': [true, 'Automatically watch threads you start.'],
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
},
@ -7261,7 +7262,7 @@
textContent: 'Watcher',
id: 'watcher-link',
href: 'javascript:;',
className: 'disabled'
className: "" + (Conf['Persistent Thread Watcher'] ? '' : 'disabled')
});
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
$.on(d, 'QRPostSuccessful', this.cb.post);
@ -7272,7 +7273,9 @@
$.ready(function() {
ThreadWatcher.refresh();
$.add(d.body, ThreadWatcher.dialog);
return ThreadWatcher.dialog.hidden = true;
if (!Conf['Persistent Thread Watcher']) {
return ThreadWatcher.dialog.hidden = true;
}
});
return Thread.prototype.callbacks.push({
name: 'Thread Watcher',

View File

@ -233,6 +233,10 @@ Config =
true
'Bookmark threads.'
]
'Persistent Thread Watcher': [
false
'Opens the thread watcher by default.'
]
'Auto Watch': [
true
'Automatically watch threads you start.'

View File

@ -5,7 +5,7 @@ ThreadWatcher =
textContent: 'Watcher'
id: 'watcher-link'
href: 'javascript:;'
className: 'disabled'
className: "#{if Conf['Persistent Thread Watcher'] then '' else 'disabled'}"
@dialog = UI.dialog 'watcher', 'top: 50px; left: 0px;',
'<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>'
@ -20,7 +20,8 @@ ThreadWatcher =
$.ready ->
ThreadWatcher.refresh()
$.add d.body, ThreadWatcher.dialog
ThreadWatcher.dialog.hidden = true
unless Conf['Persistent Thread Watcher']
ThreadWatcher.dialog.hidden = true
Thread::callbacks.push
name: 'Thread Watcher'