Move Flash tag HTML into HTML file.
This commit is contained in:
parent
07c97660e4
commit
757812dda4
@ -40,6 +40,17 @@
|
||||
</span>
|
||||
<input type="submit">
|
||||
</div>
|
||||
?{g.BOARD.ID === 'f'}{
|
||||
<select data-default="4" name="filetag">
|
||||
<option value="0">Hentai</option>
|
||||
<option value="6">Porn</option>
|
||||
<option value="1">Japanese</option>
|
||||
<option value="2">Anime</option>
|
||||
<option value="3">Game</option>
|
||||
<option value="5">Loop</option>
|
||||
<option value="4" selected>Other</option>
|
||||
</select>
|
||||
}
|
||||
<input type="file" multiple>
|
||||
</form>
|
||||
<datalist id="list-name"></datalist>
|
||||
|
||||
@ -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(
|
||||
'<option value="0">Hentai</option>' +
|
||||
'<option value="6">Porn</option>' +
|
||||
'<option value="1">Japanese</option>' +
|
||||
'<option value="2">Anime</option>' +
|
||||
'<option value="3">Game</option>' +
|
||||
'<option value="5">Loop</option>' +
|
||||
'<option value="4" selected>Other</option>'
|
||||
) %>
|
||||
|
||||
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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user