From 757812dda40946a054a5121b7432f3f5ec495d1e Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 18 Oct 2015 14:48:47 -0700 Subject: [PATCH] Move Flash tag HTML into HTML file. --- src/General/html/Features/QuickReply.html | 11 +++++++++++ src/Posting/QR.coffee | 18 +----------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/src/General/html/Features/QuickReply.html b/src/General/html/Features/QuickReply.html index ad509911d..07ac51aa2 100755 --- a/src/General/html/Features/QuickReply.html +++ b/src/General/html/Features/QuickReply.html @@ -40,6 +40,17 @@ + ?{g.BOARD.ID === 'f'}{ + + } diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 132797bce..6e8369585 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -469,6 +469,7 @@ QR = setNode 'status', '[type=submit]' setNode 'fileInput', '[type=file]' setNode 'customCooldown', '#custom-cooldown-button' + setNode 'flashTag', '[name=filetag]' rules = $('ul.rules').textContent.trim() match_min = rules.match(/.+smaller than (\d+)x(\d+).+/) @@ -514,23 +515,6 @@ QR = QR.setCustomCooldown customCooldownEnabled $.sync 'customCooldownEnabled', QR.setCustomCooldown - if g.BOARD.ID is 'f' - nodes.flashTag = $.el 'select', - name: 'filetag' - - $.extend nodes.flashTag, <%= html( - '' + - '' + - '' + - '' + - '' + - '' + - '' - ) %> - - nodes.flashTag.dataset.default = '4' - $.add nodes.form, nodes.flashTag - $.on nodes.fileButton, 'click', QR.openFileInput $.on nodes.noFile, 'click', QR.openFileInput $.on nodes.filename, 'focus', -> $.addClass @parentNode, 'focus'