diff --git a/LICENSE b/LICENSE index 1d2e98b82..8104dd796 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* appchan x - Version 2.9.7 - 2014-03-22 +* appchan x - Version 2.9.7 - 2014-03-23 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index c199e63fa..c300b03cf 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -25,7 +25,7 @@ // ==/UserScript== /* -* appchan x - Version 2.9.7 - 2014-03-22 +* appchan x - Version 2.9.7 - 2014-03-23 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -4645,9 +4645,6 @@ }); $.on(this.button, 'click', this.update); Header.addShortcut(this.button, 1); - if (g.BOARD.ID === 'f') { - return; - } this.db = new DataBoard('pinnedThreads'); Thread.callbacks.push({ name: 'Thread Pinning', @@ -11852,7 +11849,8 @@ ThreadUpdater.root = this.OP.nodes.root.parentNode; ThreadUpdater.lastPost = +this.posts.keys[this.posts.keys.length - 1]; ThreadUpdater.cb.interval.call($.el('input', { - value: Conf['Interval'] + value: Conf['Interval'], + name: 'Interval' })); $.on(window, 'online offline', ThreadUpdater.cb.online); $.on(d, 'QRPostSuccessful', ThreadUpdater.cb.checkpost); @@ -11919,14 +11917,16 @@ return !d.hidden; }; }, - interval: function() { + interval: function(e) { var val; val = parseInt(this.value, 10); if (val < 1) { val = 1; } ThreadUpdater.interval = this.value = val; - return $.cb.value.call(this); + if (e) { + return $.cb.value.call(this); + } }, load: function(e) { var klass, req, text, _ref; diff --git a/builds/crx/script.js b/builds/crx/script.js index 1249d0079..11ef2c650 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* appchan x - Version 2.9.7 - 2014-03-22 +* appchan x - Version 2.9.7 - 2014-03-23 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -4703,9 +4703,6 @@ }); $.on(this.button, 'click', this.update); Header.addShortcut(this.button, 1); - if (g.BOARD.ID === 'f') { - return; - } this.db = new DataBoard('pinnedThreads'); Thread.callbacks.push({ name: 'Thread Pinning', @@ -11866,7 +11863,8 @@ ThreadUpdater.root = this.OP.nodes.root.parentNode; ThreadUpdater.lastPost = +this.posts.keys[this.posts.keys.length - 1]; ThreadUpdater.cb.interval.call($.el('input', { - value: Conf['Interval'] + value: Conf['Interval'], + name: 'Interval' })); $.on(window, 'online offline', ThreadUpdater.cb.online); $.on(d, 'QRPostSuccessful', ThreadUpdater.cb.checkpost); @@ -11933,14 +11931,16 @@ return !d.hidden; }; }, - interval: function() { + interval: function(e) { var val; val = parseInt(this.value, 10); if (val < 1) { val = 1; } ThreadUpdater.interval = this.value = val; - return $.cb.value.call(this); + if (e) { + return $.cb.value.call(this); + } }, load: function(e) { var klass, req, text, _ref; diff --git a/src/General/Index.coffee b/src/General/Index.coffee index d38099228..4d8241077 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -13,8 +13,6 @@ Index = $.on @button, 'click', @update Header.addShortcut @button, 1 - return if g.BOARD.ID is 'f' - @db = new DataBoard 'pinnedThreads' Thread.callbacks.push name: 'Thread Pinning' diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 778b6f6f0..53ba9e438 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -97,7 +97,9 @@ ThreadUpdater = ThreadUpdater.root = @OP.nodes.root.parentNode ThreadUpdater.lastPost = +@posts.keys[@posts.keys.length - 1] - ThreadUpdater.cb.interval.call $.el 'input', value: Conf['Interval'] + ThreadUpdater.cb.interval.call $.el 'input', + value: Conf['Interval'] + name: 'Interval' $.on window, 'online offline', ThreadUpdater.cb.online $.on d, 'QRPostSuccessful', ThreadUpdater.cb.checkpost @@ -148,11 +150,11 @@ ThreadUpdater = -> true else -> not d.hidden - interval: -> + interval: (e) -> val = parseInt @value, 10 if val < 1 then val = 1 ThreadUpdater.interval = @value = val - $.cb.value.call @ + $.cb.value.call @ if e load: (e) -> {req} = ThreadUpdater switch req.status