Race conditions.
This commit is contained in:
parent
030711c586
commit
38ef5ed257
@ -6918,6 +6918,9 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.ready(this.initReady);
|
$.ready(this.initReady);
|
||||||
|
if (Conf['Persistent QR']) {
|
||||||
|
$.on(d, '4chanXInitFinished', this.persist);
|
||||||
|
}
|
||||||
return Post.prototype.callbacks.push({
|
return Post.prototype.callbacks.push({
|
||||||
name: 'Quick Reply',
|
name: 'Quick Reply',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
@ -6963,16 +6966,13 @@
|
|||||||
$.on(d, 'dragover', QR.dragOver);
|
$.on(d, 'dragover', QR.dragOver);
|
||||||
$.on(d, 'drop', QR.dropFile);
|
$.on(d, 'drop', QR.dropFile);
|
||||||
$.on(d, 'dragstart dragend', QR.drag);
|
$.on(d, 'dragstart dragend', QR.drag);
|
||||||
$.on(d, 'ThreadUpdate', function() {
|
return $.on(d, 'ThreadUpdate', function() {
|
||||||
if (g.DEAD) {
|
if (g.DEAD) {
|
||||||
return QR.abort();
|
return QR.abort();
|
||||||
} else {
|
} else {
|
||||||
return QR.status();
|
return QR.status();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (Conf['Persistent QR']) {
|
|
||||||
return QR.persist();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
node: function() {
|
node: function() {
|
||||||
return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote);
|
return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote);
|
||||||
|
|||||||
@ -6914,6 +6914,9 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.ready(this.initReady);
|
$.ready(this.initReady);
|
||||||
|
if (Conf['Persistent QR']) {
|
||||||
|
$.on(d, '4chanXInitFinished', this.persist);
|
||||||
|
}
|
||||||
return Post.prototype.callbacks.push({
|
return Post.prototype.callbacks.push({
|
||||||
name: 'Quick Reply',
|
name: 'Quick Reply',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
@ -6959,16 +6962,13 @@
|
|||||||
$.on(d, 'dragover', QR.dragOver);
|
$.on(d, 'dragover', QR.dragOver);
|
||||||
$.on(d, 'drop', QR.dropFile);
|
$.on(d, 'drop', QR.dropFile);
|
||||||
$.on(d, 'dragstart dragend', QR.drag);
|
$.on(d, 'dragstart dragend', QR.drag);
|
||||||
$.on(d, 'ThreadUpdate', function() {
|
return $.on(d, 'ThreadUpdate', function() {
|
||||||
if (g.DEAD) {
|
if (g.DEAD) {
|
||||||
return QR.abort();
|
return QR.abort();
|
||||||
} else {
|
} else {
|
||||||
return QR.status();
|
return QR.status();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (Conf['Persistent QR']) {
|
|
||||||
return QR.persist();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
node: function() {
|
node: function() {
|
||||||
return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote);
|
return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote);
|
||||||
|
|||||||
@ -6783,6 +6783,9 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.ready(this.initReady);
|
$.ready(this.initReady);
|
||||||
|
if (Conf['Persistent QR']) {
|
||||||
|
$.on(d, '4chanXInitFinished', this.persist);
|
||||||
|
}
|
||||||
return Post.prototype.callbacks.push({
|
return Post.prototype.callbacks.push({
|
||||||
name: 'Quick Reply',
|
name: 'Quick Reply',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
@ -6829,16 +6832,13 @@
|
|||||||
$.on(d, 'dragover', QR.dragOver);
|
$.on(d, 'dragover', QR.dragOver);
|
||||||
$.on(d, 'drop', QR.dropFile);
|
$.on(d, 'drop', QR.dropFile);
|
||||||
$.on(d, 'dragstart dragend', QR.drag);
|
$.on(d, 'dragstart dragend', QR.drag);
|
||||||
$.on(d, 'ThreadUpdate', function() {
|
return $.on(d, 'ThreadUpdate', function() {
|
||||||
if (g.DEAD) {
|
if (g.DEAD) {
|
||||||
return QR.abort();
|
return QR.abort();
|
||||||
} else {
|
} else {
|
||||||
return QR.status();
|
return QR.status();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (Conf['Persistent QR']) {
|
|
||||||
return QR.persist();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
node: function() {
|
node: function() {
|
||||||
return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote);
|
return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote);
|
||||||
|
|||||||
@ -25,6 +25,7 @@ QR =
|
|||||||
$.asap (-> doc), -> $.addClass doc, 'hide-original-post-form'
|
$.asap (-> doc), -> $.addClass doc, 'hide-original-post-form'
|
||||||
|
|
||||||
$.ready @initReady
|
$.ready @initReady
|
||||||
|
$.on d, '4chanXInitFinished', @persist if Conf['Persistent QR']
|
||||||
|
|
||||||
Post::callbacks.push
|
Post::callbacks.push
|
||||||
name: 'Quick Reply'
|
name: 'Quick Reply'
|
||||||
@ -67,7 +68,6 @@ QR =
|
|||||||
else
|
else
|
||||||
QR.status()
|
QR.status()
|
||||||
|
|
||||||
QR.persist() if Conf['Persistent QR']
|
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
$.on $('a[title="Quote this post"]', @nodes.info), 'click', QR.quote
|
$.on $('a[title="Quote this post"]', @nodes.info), 'click', QR.quote
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user