mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Fix release min/max error being shown incorrectly
This commit is contained in:
parent
661d66cafb
commit
d443945b5c
@ -3,12 +3,12 @@
|
||||
|
||||
const min = $("#min_rel");
|
||||
const max = $("#max_rel");
|
||||
const none = $("#min_rel option:first-child").attr("value");
|
||||
const none = parseInt($("#min_rel option:first-child").attr("value"));
|
||||
const warning = $("#minmax_warning");
|
||||
|
||||
function ver_check() {
|
||||
const minv = min.val();
|
||||
const maxv = max.val();
|
||||
const minv = parseInt(min.val());
|
||||
const maxv = parseInt(max.val());
|
||||
|
||||
if (minv != none && maxv != none && minv > maxv) {
|
||||
warning.show();
|
||||
|
@ -41,7 +41,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scriptextra %}
|
||||
<script src="/static/release_minmax.js?v=1"></script>
|
||||
<script src="/static/release_minmax.js?v=2"></script>
|
||||
<script>
|
||||
function setup_toggle(type) {
|
||||
const toggle = $("#set_" + type);
|
||||
|
@ -85,5 +85,5 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scriptextra %}
|
||||
<script src="/static/release_minmax.js?v=1"></script>
|
||||
<script src="/static/release_minmax.js?v=2"></script>
|
||||
{% endblock %}
|
||||
|
@ -90,7 +90,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scriptextra %}
|
||||
<script src="/static/release_minmax.js?v=1"></script>
|
||||
<script src="/static/release_minmax.js?v=2"></script>
|
||||
<script>
|
||||
function check_opt() {
|
||||
if ($("input[name=uploadOpt]:checked").val() == "vcs") {
|
||||
|
Loading…
Reference in New Issue
Block a user