Fix the QR in the catalog

This commit is contained in:
Kabir Sala 2014-02-24 22:00:04 +01:00
parent 8a8f14d7ce
commit a5f58231b1
4 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* /*
* 4chan X - Version 1.3.9 - 2014-02-20 * 4chan X - Version 1.3.9 - 2014-02-24
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE * https://github.com/Spittie/4chan-x/blob/master/LICENSE

View File

@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.3.9 - 2014-02-20 * 4chan X - Version 1.3.9 - 2014-02-24
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE * https://github.com/Spittie/4chan-x/blob/master/LICENSE
@ -5663,7 +5663,9 @@
$.on(d, 'dragstart dragend', QR.drag); $.on(d, 'dragstart dragend', QR.drag);
return { return {
catalog: function() { catalog: function() {
return $.on(d, 'IndexRefresh', QR.generatePostableThreadsList); if (Conf["Persistent QR"]) {
return QR.open();
}
}, },
index: function() { index: function() {
return $.on(d, 'IndexRefresh', QR.generatePostableThreadsList); return $.on(d, 'IndexRefresh', QR.generatePostableThreadsList);

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* 4chan X - Version 1.3.9 - 2014-02-20 * 4chan X - Version 1.3.9 - 2014-02-24
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE * https://github.com/Spittie/4chan-x/blob/master/LICENSE
@ -5698,7 +5698,9 @@
$.on(d, 'dragstart dragend', QR.drag); $.on(d, 'dragstart dragend', QR.drag);
return { return {
catalog: function() { catalog: function() {
return $.on(d, 'IndexRefresh', QR.generatePostableThreadsList); if (Conf["Persistent QR"]) {
return QR.open();
}
}, },
index: function() { index: function() {
return $.on(d, 'IndexRefresh', QR.generatePostableThreadsList); return $.on(d, 'IndexRefresh', QR.generatePostableThreadsList);

View File

@ -72,7 +72,7 @@ QR =
$.on d, 'dragstart dragend', QR.drag $.on d, 'dragstart dragend', QR.drag
{ {
catalog: -> catalog: ->
$.on d, 'IndexRefresh', QR.generatePostableThreadsList QR.open() if Conf["Persistent QR"]
index: -> index: ->
$.on d, 'IndexRefresh', QR.generatePostableThreadsList $.on d, 'IndexRefresh', QR.generatePostableThreadsList
thread: -> thread: ->