Update the thread directly after posting in it. Close #293.
This commit is contained in:
parent
46c908bdbf
commit
f8913616c1
@ -1969,6 +1969,9 @@
|
|||||||
} else {
|
} else {
|
||||||
qr.close();
|
qr.close();
|
||||||
}
|
}
|
||||||
|
if (g.REPLY && conf['Thread Updater'] && conf['Auto Update This']) {
|
||||||
|
updater.update();
|
||||||
|
}
|
||||||
qr.status();
|
qr.status();
|
||||||
return qr.resetFileInput();
|
return qr.resetFileInput();
|
||||||
},
|
},
|
||||||
@ -2517,9 +2520,6 @@
|
|||||||
input = _ref[_i];
|
input = _ref[_i];
|
||||||
if (input.type === 'checkbox') {
|
if (input.type === 'checkbox') {
|
||||||
$.on(input, 'click', $.cb.checked);
|
$.on(input, 'click', $.cb.checked);
|
||||||
$.on(input, 'click', function() {
|
|
||||||
return conf[this.name] = this.checked;
|
|
||||||
});
|
|
||||||
if (input.name === 'Scroll BG') {
|
if (input.name === 'Scroll BG') {
|
||||||
$.on(input, 'click', updater.cb.scrollBG);
|
$.on(input, 'click', updater.cb.scrollBG);
|
||||||
updater.cb.scrollBG.call(input);
|
updater.cb.scrollBG.call(input);
|
||||||
@ -2530,6 +2530,7 @@
|
|||||||
} else if (input.name === 'Auto Update This') {
|
} else if (input.name === 'Auto Update This') {
|
||||||
$.on(input, 'click', updater.cb.autoUpdate);
|
$.on(input, 'click', updater.cb.autoUpdate);
|
||||||
updater.cb.autoUpdate.call(input);
|
updater.cb.autoUpdate.call(input);
|
||||||
|
conf[input.name] = input.checked;
|
||||||
}
|
}
|
||||||
} else if (input.name === 'Interval') {
|
} else if (input.name === 'Interval') {
|
||||||
$.on(input, 'change', function() {
|
$.on(input, 'change', function() {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
master
|
master
|
||||||
- Mayhem
|
- Mayhem
|
||||||
General performance improvements.
|
General performance improvements.
|
||||||
|
Threads will now be updated instantly after posting through the QR.
|
||||||
- noface
|
- noface
|
||||||
Add unique ID to filter.
|
Add unique ID to filter.
|
||||||
|
|
||||||
|
|||||||
@ -1602,6 +1602,9 @@ qr =
|
|||||||
else
|
else
|
||||||
qr.close()
|
qr.close()
|
||||||
|
|
||||||
|
if g.REPLY and conf['Thread Updater'] and conf['Auto Update This']
|
||||||
|
updater.update()
|
||||||
|
|
||||||
qr.status()
|
qr.status()
|
||||||
qr.resetFileInput()
|
qr.resetFileInput()
|
||||||
|
|
||||||
@ -2082,7 +2085,6 @@ updater =
|
|||||||
for input in $$ 'input', dialog
|
for input in $$ 'input', dialog
|
||||||
if input.type is 'checkbox'
|
if input.type is 'checkbox'
|
||||||
$.on input, 'click', $.cb.checked
|
$.on input, 'click', $.cb.checked
|
||||||
$.on input, 'click', -> conf[@name] = @checked
|
|
||||||
if input.name is 'Scroll BG'
|
if input.name is 'Scroll BG'
|
||||||
$.on input, 'click', updater.cb.scrollBG
|
$.on input, 'click', updater.cb.scrollBG
|
||||||
updater.cb.scrollBG.call input
|
updater.cb.scrollBG.call input
|
||||||
@ -2092,6 +2094,8 @@ updater =
|
|||||||
else if input.name is 'Auto Update This'
|
else if input.name is 'Auto Update This'
|
||||||
$.on input, 'click', updater.cb.autoUpdate
|
$.on input, 'click', updater.cb.autoUpdate
|
||||||
updater.cb.autoUpdate.call input
|
updater.cb.autoUpdate.call input
|
||||||
|
# Required for the QR's update after posting.
|
||||||
|
conf[input.name] = input.checked
|
||||||
else if input.name is 'Interval'
|
else if input.name is 'Interval'
|
||||||
$.on input, 'change', -> conf['Interval'] = @value = parseInt(@value, 10) or conf['Interval']
|
$.on input, 'change', -> conf['Interval'] = @value = parseInt(@value, 10) or conf['Interval']
|
||||||
$.on input, 'change', $.cb.value
|
$.on input, 'change', $.cb.value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user