Change up the load order a little
This commit is contained in:
parent
1f9546cc03
commit
3f7b5c2799
File diff suppressed because one or more lines are too long
@ -347,7 +347,6 @@ a[href="javascript:;"] {
|
|||||||
/* Thread Watcher */
|
/* Thread Watcher */
|
||||||
#watcher {
|
#watcher {
|
||||||
padding-bottom: 3px;
|
padding-bottom: 3px;
|
||||||
position: absolute;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,19 +5,6 @@ QR =
|
|||||||
Misc.clearThreads "yourPosts.#{g.BOARD}"
|
Misc.clearThreads "yourPosts.#{g.BOARD}"
|
||||||
@syncYourPosts()
|
@syncYourPosts()
|
||||||
|
|
||||||
$.on d, '4chanXInitFinished', @initReady
|
|
||||||
|
|
||||||
Post::callbacks.push
|
|
||||||
name: 'Quick Reply'
|
|
||||||
cb: @node
|
|
||||||
|
|
||||||
initReady: ->
|
|
||||||
QR.postingIsEnabled = !!$.id 'postForm'
|
|
||||||
return unless QR.postingIsEnabled
|
|
||||||
|
|
||||||
if Conf['Hide Original Post Form']
|
|
||||||
$.addClass doc, 'hide-original-post-form'
|
|
||||||
|
|
||||||
sc = $.el 'a',
|
sc = $.el 'a',
|
||||||
className: "qr-shortcut #{unless Conf['Persistent QR'] then 'disabled' else ''}"
|
className: "qr-shortcut #{unless Conf['Persistent QR'] then 'disabled' else ''}"
|
||||||
textContent: 'QR'
|
textContent: 'QR'
|
||||||
@ -31,9 +18,26 @@ QR =
|
|||||||
else
|
else
|
||||||
QR.close()
|
QR.close()
|
||||||
$.toggleClass @, 'disabled'
|
$.toggleClass @, 'disabled'
|
||||||
|
|
||||||
Header.addShortcut sc
|
Header.addShortcut sc
|
||||||
|
|
||||||
|
$.asap (-> doc), ->
|
||||||
|
if Conf['Hide Original Post Form']
|
||||||
|
$.addClass doc, 'hide-original-post-form'
|
||||||
|
|
||||||
|
$.on d, '4chanXInitFinished', @initReady
|
||||||
|
|
||||||
|
Post::callbacks.push
|
||||||
|
name: 'Quick Reply'
|
||||||
|
cb: @node
|
||||||
|
|
||||||
|
initReady: ->
|
||||||
|
QR.postingIsEnabled = !!$.id 'postForm'
|
||||||
|
return unless QR.postingIsEnabled
|
||||||
|
|
||||||
|
if Conf['Hide Original Post Form']
|
||||||
|
$.addClass doc, 'hide-original-post-form'
|
||||||
|
|
||||||
if $.engine is 'webkit'
|
if $.engine is 'webkit'
|
||||||
$.on d, 'paste', QR.paste
|
$.on d, 'paste', QR.paste
|
||||||
$.on d, 'dragover', QR.dragOver
|
$.on d, 'dragover', QR.dragOver
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user