diff --git a/4chan_x.user.js b/4chan_x.user.js index e3d1250fb..a3b2eba99 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1969,6 +1969,9 @@ } else { qr.close(); } + if (g.REPLY && conf['Thread Updater'] && conf['Auto Update This']) { + updater.update(); + } qr.status(); return qr.resetFileInput(); }, @@ -2517,9 +2520,6 @@ input = _ref[_i]; if (input.type === 'checkbox') { $.on(input, 'click', $.cb.checked); - $.on(input, 'click', function() { - return conf[this.name] = this.checked; - }); if (input.name === 'Scroll BG') { $.on(input, 'click', updater.cb.scrollBG); updater.cb.scrollBG.call(input); @@ -2530,6 +2530,7 @@ } else if (input.name === 'Auto Update This') { $.on(input, 'click', updater.cb.autoUpdate); updater.cb.autoUpdate.call(input); + conf[input.name] = input.checked; } } else if (input.name === 'Interval') { $.on(input, 'change', function() { diff --git a/changelog b/changelog index 4528a9e34..3367194a7 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,7 @@ master - Mayhem General performance improvements. + Threads will now be updated instantly after posting through the QR. - noface Add unique ID to filter. diff --git a/script.coffee b/script.coffee index 6cf642641..024d691cc 100644 --- a/script.coffee +++ b/script.coffee @@ -1602,6 +1602,9 @@ qr = else qr.close() + if g.REPLY and conf['Thread Updater'] and conf['Auto Update This'] + updater.update() + qr.status() qr.resetFileInput() @@ -2082,7 +2085,6 @@ updater = for input in $$ 'input', dialog if input.type is 'checkbox' $.on input, 'click', $.cb.checked - $.on input, 'click', -> conf[@name] = @checked if input.name is 'Scroll BG' $.on input, 'click', updater.cb.scrollBG updater.cb.scrollBG.call input @@ -2092,6 +2094,8 @@ updater = else if input.name is 'Auto Update This' $.on input, 'click', updater.cb.autoUpdate updater.cb.autoUpdate.call input + # Required for the QR's update after posting. + conf[input.name] = input.checked else if input.name is 'Interval' $.on input, 'change', -> conf['Interval'] = @value = parseInt(@value, 10) or conf['Interval'] $.on input, 'change', $.cb.value