diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 432bc210c..5ed0b41cb 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -16,12 +16,6 @@ ThreadUpdater = $.addClass doc, 'float' $.add d.body, sc - updateLink = $.el 'span', - innerHTML: '[Update]' - - $.ready -> - $.add $('.navLinksBot'), updateLink - @checkPostCount = 0 @timer = $ '#update-timer', sc @@ -30,7 +24,17 @@ ThreadUpdater = $.on @timer, 'click', @update $.on @status, 'click', @update - $.on $('.update-link', updateLink), 'click', @update + + unless Conf['JSON Navigation'] and $ '.updatelink', Index.navLinksBot + #updateLink = $.el 'span', + # innerHTML: '[Update]' + # className: 'updatelink' + updateLink = $.el 'span', + innerHTML: 'Update' + className: 'brackets-wrap updatelink' + $.ready -> + $.add (Index.navLinksBot or $('.navLinksBot')), [$.tn(' '), updateLink] + $.on updateLink.firstElementChild, 'click', @update subEntries = [] for name, conf of Config.updater.checkbox diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 443f250a7..322af8684 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -56,10 +56,10 @@ QR = if Conf['QR Shortcut'] $.rmClass $('.qr-shortcut'), 'disabled' - if Conf['Bottom QR Link'] and g.VIEW is 'thread' + if Conf['Bottom QR Link'] and (g.VIEW is 'thread' or Conf['JSON Navigation']) linkBot = $.el 'div', - innerHTML: '[Reply to Thread]' - className: "qr-link-container-bottom" + innerHTML: 'Reply to Thread' + className: "brackets-wrap qr-link-container-bottom" $.on linkBot.firstElementChild, 'click', -> $.event 'CloseMenu' @@ -68,7 +68,7 @@ QR = if Conf['QR Shortcut'] $.rmClass $('.qr-shortcut'), 'disabled' - $.prepend $('.navLinksBot'), linkBot + $.prepend (Index.navLinksBot or $('.navLinksBot')), linkBot $.before $.id('togglePostFormLink'), link