Fix release min/max error being shown incorrectly

This commit is contained in:
rubenwardy 2023-06-05 17:55:20 +01:00
parent 661d66cafb
commit d443945b5c
4 changed files with 6 additions and 6 deletions

@ -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") {