Small fixes (#1593)
* Update torrent_file_missing.jet.html * Update en-us.all.json * Update CHANGELOG.md * Update main.css * Update upload.jet.html * Remove unused refine inputs from URL when doing a refine search * fix cookie warning not showing up
Cette révision appartient à :
Parent
102ff0efbc
révision
7264ab0d0a
7 fichiers modifiés avec 42 ajouts et 8 suppressions
|
@ -1912,6 +1912,9 @@ span.tag {
|
|||
p.upload-rules {
|
||||
margin-top: 0;
|
||||
}
|
||||
p.upload-rules a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#upload-button {
|
||||
width: 120px;
|
||||
}
|
||||
|
|
|
@ -228,6 +228,39 @@ document.getElementsByClassName("form-input refine")[0].addEventListener("click"
|
|||
}
|
||||
})
|
||||
|
||||
document.getElementsByClassName("form-input refine-btn")[0].addEventListener("click", function (e) {
|
||||
var inputs = document.querySelectorAll(".box.refine form input")
|
||||
var select = document.querySelectorAll(".box.refine form select")
|
||||
|
||||
for(var i = 0; i < inputs.length; i++)
|
||||
if(inputs[i].value == "") inputs[i].disabled = true;
|
||||
|
||||
for(var i = 0; i < select.length; i++)
|
||||
if(select[i].selectedIndex == 0) select[i].disabled = true;
|
||||
|
||||
|
||||
if(document.querySelector(".box.refine form input[name='limit']").value == "50")
|
||||
document.querySelector(".box.refine form input[name='limit']").disabled = true
|
||||
|
||||
if(document.querySelector(".box.refine form select[name='sort']").selectedIndex == 5)
|
||||
document.querySelector(".box.refine form select[name='sort']"). disabled = true;
|
||||
else document.querySelector(".box.refine form select[name='sort']"). disabled = false;
|
||||
|
||||
if(document.querySelector(".box.refine form select[name='order']").selectedIndex == 1)
|
||||
document.querySelector(".box.refine form select[name='order']"). disabled = true;
|
||||
else document.querySelector(".box.refine form select[name='order']"). disabled = false;
|
||||
|
||||
if(document.querySelector(".box.refine form select[name='sizeType']").selectedIndex == 2 &&
|
||||
document.querySelector(".box.refine form input[name='minSize']").value == "" &&
|
||||
document.querySelector(".box.refine form input[name='maxSize']").value == "")
|
||||
document.querySelector(".box.refine form select[name='sizeType']"). disabled = true
|
||||
else document.querySelector(".box.refine form select[name='sizeType']"). disabled = false
|
||||
|
||||
if(document.querySelector(".box.refine form select[name='order']").selectedIndex == 1)
|
||||
document.querySelector(".box.refine form select[name='order']"). disabled = true;
|
||||
else document.querySelector(".box.refine form select[name='order']"). disabled = false;
|
||||
})
|
||||
|
||||
function humanFileSize(bytes, si) {
|
||||
if (bytes == 0)
|
||||
return "Unknown"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{block content_body()}}
|
||||
<div style="text-align: center;">
|
||||
<h1>{{ T("err_no_torrent_file")}}</h1>
|
||||
{{ if magnet != "" }}
|
||||
{{ if isset(magnet) && magnet != "" }}
|
||||
<a href="{{magnet}}" class="form-input btn-green download" style="height: auto;">
|
||||
<div class="icon-magnet"></div>{{ T("magnet_link")}}
|
||||
</a>
|
||||
|
|
|
@ -138,7 +138,6 @@
|
|||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{{ if !EUCookieLaw }}<div id="cookie-warning"><span id="cookie-warning-close" class="close">×</span>{{ T("cookie_warning")|raw }}</div>{{ end }}
|
||||
<!-- Modal -->
|
||||
<div id="modal_mod_tools" class="modal">
|
||||
<!-- Modal content -->
|
||||
|
@ -169,6 +168,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{ if !EUCookieLaw }}<div id="cookie-warning"><span id="cookie-warning-close" class="close">×</span>{{ T("cookie_warning")|raw }}</div>{{ end }}
|
||||
{{end}}
|
||||
{{ block footer_js()}}
|
||||
<script type="text/javascript" src="{{ URL.Parse("/js/template.js") }}"></script>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr class="table-checkboxes">
|
||||
<td></td>
|
||||
<td class="table-input-label"></td>
|
||||
<td class="table-input" style="font-weight: normal;"><input type="checkbox" value="true" name="remake" id="remake" class="form-torrent-remake"/><label for="remake">{{ T("mark_as_remake")}}</label> <input type="checkbox" value="true" name="hidden" id="hidden" class="form-torrent-hidden {{ if User.ID == 0 }}hidden{{end}}" {{ if User.ID == 0 }}disabled checked{{end}}><label for="hidden" {{ if User.ID == 0 }}class="hidden"{{end}}>{{ T("upload_as_anon")}}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -43,3 +43,5 @@
|
|||
## 2017/09/17
|
||||
* + torrent_name
|
||||
* + read_rules
|
||||
## 2017/09/18
|
||||
* - language_not_mandatory
|
||||
|
|
|
@ -1354,10 +1354,6 @@
|
|||
"id": "torrent_language",
|
||||
"translation": "Torrent language"
|
||||
},
|
||||
{
|
||||
"id": "language_not_mandatory",
|
||||
"translation": "Language is not mandatory anymore"
|
||||
},
|
||||
{
|
||||
"id": "language_en-us_name",
|
||||
"translation": "English"
|
||||
|
@ -1816,7 +1812,7 @@
|
|||
},
|
||||
{
|
||||
"id": "torrent_name",
|
||||
"translation": "Torrent name"
|
||||
"translation": "Torrent Name"
|
||||
},
|
||||
{
|
||||
"id": "torrent_name_invalid",
|
||||
|
|
Référencer dans un nouveau ticket