Don't insert things into .navLinksBot if it didn't load.
This commit is contained in:
parent
806d352367
commit
fc12dfc00e
@ -27,7 +27,7 @@ ThreadUpdater =
|
|||||||
className: 'brackets-wrap updatelink'
|
className: 'brackets-wrap updatelink'
|
||||||
$.extend updateLink, <%= html('<a href="javascript:;">Update</a>') %>
|
$.extend updateLink, <%= html('<a href="javascript:;">Update</a>') %>
|
||||||
Main.ready ->
|
Main.ready ->
|
||||||
$.add $('.navLinksBot'), [$.tn(' '), updateLink]
|
$.add navLinksBot, [$.tn(' '), updateLink] if (navLinksBot = $ '.navLinksBot')
|
||||||
$.on updateLink.firstElementChild, 'click', @update
|
$.on updateLink.firstElementChild, 'click', @update
|
||||||
|
|
||||||
subEntries = []
|
subEntries = []
|
||||||
|
|||||||
@ -80,7 +80,7 @@ QR =
|
|||||||
QR.open()
|
QR.open()
|
||||||
QR.nodes.com.focus()
|
QR.nodes.com.focus()
|
||||||
|
|
||||||
$.prepend $('.navLinksBot'), linkBot
|
$.prepend navLinksBot, linkBot if (navLinksBot = $ '.navLinksBot')
|
||||||
|
|
||||||
origToggle = $.id 'togglePostFormLink'
|
origToggle = $.id 'togglePostFormLink'
|
||||||
$.before origToggle, link
|
$.before origToggle, link
|
||||||
|
|||||||
@ -39,7 +39,7 @@ QuoteThreading =
|
|||||||
setThread: ->
|
setThread: ->
|
||||||
QuoteThreading.thread = @
|
QuoteThreading.thread = @
|
||||||
$.asap (-> !Conf['Thread Updater'] or $ '.navLinksBot > .updatelink'), ->
|
$.asap (-> !Conf['Thread Updater'] or $ '.navLinksBot > .updatelink'), ->
|
||||||
$.add $('.navLinksBot'), [$.tn(' '), QuoteThreading.threadNewLink]
|
$.add navLinksBot, [$.tn(' '), QuoteThreading.threadNewLink] if (navLinksBot = $ '.navLinksBot')
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return if @isFetchedQuote or @isClone or !@isReply
|
return if @isFetchedQuote or @isClone or !@isReply
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user