Merge pull request #1324 from Kiloutre/patch-9
Make tags invisible in upload if JS disabled
Cette révision appartient à :
révision
5042c46e2a
1 fichiers modifiés avec 4 ajouts et 2 suppressions
|
@ -161,9 +161,9 @@
|
|||
<p>{{ T("description_markdown_notice")}}</p>
|
||||
<textarea name="desc" id="desc" class="form-input up-input" style="height: 10rem;">{{Form.Description}}</textarea>
|
||||
|
||||
<h3>{{ T("torrent_tags")}}</h3>
|
||||
<h3 id="tag-h3" style="display:none;">{{ T("torrent_tags")}}</h3>
|
||||
<span id="tags_list"></span>
|
||||
<a id="tagPopup" href="#" class="add-tag">{{ T("add") }}</a>
|
||||
<a id="tagPopup" href="#" class="add-tag" style="display:none;">>{{ T("add") }}</a>
|
||||
<input type="hidden" name="tags" id="tags" value="{{ Form.Tags }}">
|
||||
{{ yield errors(name="tags")}}
|
||||
<div style="width: 240px">
|
||||
|
@ -218,6 +218,8 @@ Modal.Init({
|
|||
// order of apparition of the modals
|
||||
button: "#tagPopup"
|
||||
});
|
||||
document.getElementById("add-tag").style.display = "initial";
|
||||
document.getElementById("tag-h3").style.display = "initial";
|
||||
var tags = []
|
||||
document.querySelector("#modal_tag_form form").addEventListener("submit", function(e) {
|
||||
var form = e.target
|
||||
|
|
Référencer dans un nouveau ticket