diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 9c42cf533..9873aa57a 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -4660,14 +4660,14 @@ }); }, initReady: function() { - var link, title; + var link; QR.postingIsEnabled = !!$.id('postForm'); if (!QR.postingIsEnabled) { return; } link = $.el('h1', { - innerHTML: "" + (title = g.VIEW === 'thread' ? 'Reply to Thread' : 'Start a Thread') + "", + innerHTML: "" + (g.VIEW === 'thread' ? 'Reply to Thread' : 'Start a Thread') + "", className: "qr-link-container" }); $.on(link.firstChild, 'click', function() { diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 4c493ecf0..c11af2239 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4644,14 +4644,14 @@ }); }, initReady: function() { - var link, title; + var link; QR.postingIsEnabled = !!$.id('postForm'); if (!QR.postingIsEnabled) { return; } link = $.el('h1', { - innerHTML: "" + (title = g.VIEW === 'thread' ? 'Reply to Thread' : 'Start a Thread') + "", + innerHTML: "" + (g.VIEW === 'thread' ? 'Reply to Thread' : 'Start a Thread') + "", className: "qr-link-container" }); $.on(link.firstChild, 'click', function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index 571522f59..8d6535c2d 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4646,14 +4646,14 @@ }); }, initReady: function() { - var link, title; + var link; QR.postingIsEnabled = !!$.id('postForm'); if (!QR.postingIsEnabled) { return; } link = $.el('h1', { - innerHTML: "" + (title = g.VIEW === 'thread' ? 'Reply to Thread' : 'Start a Thread') + "", + innerHTML: "" + (g.VIEW === 'thread' ? 'Reply to Thread' : 'Start a Thread') + "", className: "qr-link-container" }); $.on(link.firstChild, 'click', function() { diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index bd119d8d1..8fe333372 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -37,7 +37,7 @@ QR = return unless QR.postingIsEnabled link = $.el 'h1', - innerHTML: "#{title = if g.VIEW is 'thread' then 'Reply to Thread' else 'Start a Thread'}" + innerHTML: "#{if g.VIEW is 'thread' then 'Reply to Thread' else 'Start a Thread'}" className: "qr-link-container" $.on link.firstChild, 'click', -> $.event 'CloseMenu'