Remove thread watcher toggle
This commit is contained in:
parent
48bdc81f01
commit
86f9536406
@ -9424,27 +9424,16 @@
|
|||||||
|
|
||||||
ThreadWatcher = {
|
ThreadWatcher = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var sc;
|
|
||||||
|
|
||||||
if (!Conf['Thread Watcher']) {
|
if (!Conf['Thread Watcher']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.shortcut = sc = $.el('a', {
|
|
||||||
textContent: 'Watcher',
|
|
||||||
id: 'watcher-link',
|
|
||||||
href: 'javascript:;',
|
|
||||||
className: 'disabled'
|
|
||||||
});
|
|
||||||
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
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);
|
$.on(d, 'QRPostSuccessful', this.cb.post);
|
||||||
$.sync('WatchedThreads', this.refresh);
|
$.sync('WatchedThreads', this.refresh);
|
||||||
$.on(sc, 'click', this.toggleWatcher);
|
|
||||||
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
|
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
|
||||||
Header.addShortcut(sc);
|
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
ThreadWatcher.refresh();
|
ThreadWatcher.refresh();
|
||||||
$.add(d.body, ThreadWatcher.dialog);
|
return $.add(d.body, ThreadWatcher.dialog);
|
||||||
return ThreadWatcher.dialog.hidden = true;
|
|
||||||
});
|
});
|
||||||
return Thread.prototype.callbacks.push({
|
return Thread.prototype.callbacks.push({
|
||||||
name: 'Thread Watcher',
|
name: 'Thread Watcher',
|
||||||
|
|||||||
@ -9445,27 +9445,16 @@
|
|||||||
|
|
||||||
ThreadWatcher = {
|
ThreadWatcher = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var sc;
|
|
||||||
|
|
||||||
if (!Conf['Thread Watcher']) {
|
if (!Conf['Thread Watcher']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.shortcut = sc = $.el('a', {
|
|
||||||
textContent: 'Watcher',
|
|
||||||
id: 'watcher-link',
|
|
||||||
href: 'javascript:;',
|
|
||||||
className: 'disabled'
|
|
||||||
});
|
|
||||||
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
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);
|
$.on(d, 'QRPostSuccessful', this.cb.post);
|
||||||
$.sync('WatchedThreads', this.refresh);
|
$.sync('WatchedThreads', this.refresh);
|
||||||
$.on(sc, 'click', this.toggleWatcher);
|
|
||||||
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
|
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
|
||||||
Header.addShortcut(sc);
|
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
ThreadWatcher.refresh();
|
ThreadWatcher.refresh();
|
||||||
$.add(d.body, ThreadWatcher.dialog);
|
return $.add(d.body, ThreadWatcher.dialog);
|
||||||
return ThreadWatcher.dialog.hidden = true;
|
|
||||||
});
|
});
|
||||||
return Thread.prototype.callbacks.push({
|
return Thread.prototype.callbacks.push({
|
||||||
name: 'Thread Watcher',
|
name: 'Thread Watcher',
|
||||||
|
|||||||
@ -9423,27 +9423,16 @@
|
|||||||
|
|
||||||
ThreadWatcher = {
|
ThreadWatcher = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var sc;
|
|
||||||
|
|
||||||
if (!Conf['Thread Watcher']) {
|
if (!Conf['Thread Watcher']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.shortcut = sc = $.el('a', {
|
|
||||||
textContent: 'Watcher',
|
|
||||||
id: 'watcher-link',
|
|
||||||
href: 'javascript:;',
|
|
||||||
className: 'disabled'
|
|
||||||
});
|
|
||||||
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
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);
|
$.on(d, 'QRPostSuccessful', this.cb.post);
|
||||||
$.sync('WatchedThreads', this.refresh);
|
$.sync('WatchedThreads', this.refresh);
|
||||||
$.on(sc, 'click', this.toggleWatcher);
|
|
||||||
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
|
$.on($('.move>.close', ThreadWatcher.dialog), 'click', this.toggleWatcher);
|
||||||
Header.addShortcut(sc);
|
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
ThreadWatcher.refresh();
|
ThreadWatcher.refresh();
|
||||||
$.add(d.body, ThreadWatcher.dialog);
|
return $.add(d.body, ThreadWatcher.dialog);
|
||||||
return ThreadWatcher.dialog.hidden = true;
|
|
||||||
});
|
});
|
||||||
return Thread.prototype.callbacks.push({
|
return Thread.prototype.callbacks.push({
|
||||||
name: 'Thread Watcher',
|
name: 'Thread Watcher',
|
||||||
|
|||||||
@ -1,26 +1,17 @@
|
|||||||
ThreadWatcher =
|
ThreadWatcher =
|
||||||
init: ->
|
init: ->
|
||||||
return unless Conf['Thread Watcher']
|
return unless Conf['Thread Watcher']
|
||||||
@shortcut = sc = $.el 'a',
|
|
||||||
textContent: 'Watcher'
|
|
||||||
id: 'watcher-link'
|
|
||||||
href: 'javascript:;'
|
|
||||||
className: 'disabled'
|
|
||||||
|
|
||||||
@dialog = UI.dialog 'watcher', 'top: 50px; left: 0px;',
|
@dialog = UI.dialog 'watcher', 'top: 50px; left: 0px;',
|
||||||
'<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>'
|
'<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>'
|
||||||
|
|
||||||
$.on d, 'QRPostSuccessful', @cb.post
|
$.on d, 'QRPostSuccessful', @cb.post
|
||||||
$.sync 'WatchedThreads', @refresh
|
$.sync 'WatchedThreads', @refresh
|
||||||
$.on sc, 'click', @toggleWatcher
|
|
||||||
$.on $('.move>.close', ThreadWatcher.dialog), 'click', @toggleWatcher
|
$.on $('.move>.close', ThreadWatcher.dialog), 'click', @toggleWatcher
|
||||||
|
|
||||||
Header.addShortcut sc
|
|
||||||
|
|
||||||
$.ready ->
|
$.ready ->
|
||||||
ThreadWatcher.refresh()
|
ThreadWatcher.refresh()
|
||||||
$.add d.body, ThreadWatcher.dialog
|
$.add d.body, ThreadWatcher.dialog
|
||||||
ThreadWatcher.dialog.hidden = true
|
|
||||||
|
|
||||||
Thread::callbacks.push
|
Thread::callbacks.push
|
||||||
name: 'Thread Watcher'
|
name: 'Thread Watcher'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user