MISTAKES WERE MADE!

This commit is contained in:
Zixaphir 2014-03-02 19:13:16 -07:00
parent 76f779fa25
commit 1fc83f9b95
3 changed files with 6 additions and 3 deletions

View File

@ -5843,7 +5843,7 @@
return $.addClass(doc, 'hide-original-post-form');
});
}
$.on('4chanXInitFinished', this.initReady);
$.on(d, '4chanXInitFinished', this.initReady);
return Post.callbacks.push({
name: 'Quick Reply',
cb: this.node
@ -5851,6 +5851,7 @@
},
initReady: function() {
var link;
$.off(d, '4chanXInitFinished', this.initReady);
QR.postingIsEnabled = !!$.id('postForm');
if (!QR.postingIsEnabled) {
return;

View File

@ -5895,7 +5895,7 @@
return $.addClass(doc, 'hide-original-post-form');
});
}
$.on('4chanXInitFinished', this.initReady);
$.on(d, '4chanXInitFinished', this.initReady);
return Post.callbacks.push({
name: 'Quick Reply',
cb: this.node
@ -5903,6 +5903,7 @@
},
initReady: function() {
var link;
$.off(d, '4chanXInitFinished', this.initReady);
QR.postingIsEnabled = !!$.id('postForm');
if (!QR.postingIsEnabled) {
return;

View File

@ -30,13 +30,14 @@ QR =
if Conf['Hide Original Post Form']
$.asap (-> doc), -> $.addClass doc, 'hide-original-post-form'
$.on '4chanXInitFinished', @initReady
$.on d, '4chanXInitFinished', @initReady
Post.callbacks.push
name: 'Quick Reply'
cb: @node
initReady: ->
$.off d, '4chanXInitFinished', @initReady
QR.postingIsEnabled = !!$.id 'postForm'
return unless QR.postingIsEnabled