Update the thread directly after posting in it. Close #293.

This commit is contained in:
Nicolas Stepien 2012-03-05 06:32:53 +01:00
parent 46c908bdbf
commit f8913616c1
3 changed files with 10 additions and 4 deletions

View File

@ -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() {

View File

@ -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.

View File

@ -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