MISTAKES WERE MADE!
This commit is contained in:
parent
76f779fa25
commit
1fc83f9b95
@ -5843,7 +5843,7 @@
|
|||||||
return $.addClass(doc, 'hide-original-post-form');
|
return $.addClass(doc, 'hide-original-post-form');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.on('4chanXInitFinished', this.initReady);
|
$.on(d, '4chanXInitFinished', this.initReady);
|
||||||
return Post.callbacks.push({
|
return Post.callbacks.push({
|
||||||
name: 'Quick Reply',
|
name: 'Quick Reply',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
@ -5851,6 +5851,7 @@
|
|||||||
},
|
},
|
||||||
initReady: function() {
|
initReady: function() {
|
||||||
var link;
|
var link;
|
||||||
|
$.off(d, '4chanXInitFinished', this.initReady);
|
||||||
QR.postingIsEnabled = !!$.id('postForm');
|
QR.postingIsEnabled = !!$.id('postForm');
|
||||||
if (!QR.postingIsEnabled) {
|
if (!QR.postingIsEnabled) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -5895,7 +5895,7 @@
|
|||||||
return $.addClass(doc, 'hide-original-post-form');
|
return $.addClass(doc, 'hide-original-post-form');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.on('4chanXInitFinished', this.initReady);
|
$.on(d, '4chanXInitFinished', this.initReady);
|
||||||
return Post.callbacks.push({
|
return Post.callbacks.push({
|
||||||
name: 'Quick Reply',
|
name: 'Quick Reply',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
@ -5903,6 +5903,7 @@
|
|||||||
},
|
},
|
||||||
initReady: function() {
|
initReady: function() {
|
||||||
var link;
|
var link;
|
||||||
|
$.off(d, '4chanXInitFinished', this.initReady);
|
||||||
QR.postingIsEnabled = !!$.id('postForm');
|
QR.postingIsEnabled = !!$.id('postForm');
|
||||||
if (!QR.postingIsEnabled) {
|
if (!QR.postingIsEnabled) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -30,13 +30,14 @@ QR =
|
|||||||
if Conf['Hide Original Post Form']
|
if Conf['Hide Original Post Form']
|
||||||
$.asap (-> doc), -> $.addClass doc, 'hide-original-post-form'
|
$.asap (-> doc), -> $.addClass doc, 'hide-original-post-form'
|
||||||
|
|
||||||
$.on '4chanXInitFinished', @initReady
|
$.on d, '4chanXInitFinished', @initReady
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Quick Reply'
|
name: 'Quick Reply'
|
||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
initReady: ->
|
initReady: ->
|
||||||
|
$.off d, '4chanXInitFinished', @initReady
|
||||||
QR.postingIsEnabled = !!$.id 'postForm'
|
QR.postingIsEnabled = !!$.id 'postForm'
|
||||||
return unless QR.postingIsEnabled
|
return unless QR.postingIsEnabled
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user