Change up the load order a little

This commit is contained in:
Zixaphir 2013-03-17 18:30:39 -07:00
parent 1f9546cc03
commit 3f7b5c2799
3 changed files with 41 additions and 31 deletions

File diff suppressed because one or more lines are too long

View File

@ -347,7 +347,6 @@ a[href="javascript:;"] {
/* Thread Watcher */
#watcher {
padding-bottom: 3px;
position: absolute;
overflow: hidden;
white-space: nowrap;
}

View File

@ -5,19 +5,6 @@ QR =
Misc.clearThreads "yourPosts.#{g.BOARD}"
@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',
className: "qr-shortcut #{unless Conf['Persistent QR'] then 'disabled' else ''}"
textContent: 'QR'
@ -31,9 +18,26 @@ QR =
else
QR.close()
$.toggleClass @, 'disabled'
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'
$.on d, 'paste', QR.paste
$.on d, 'dragover', QR.dragOver