2022-02-09 20:11:31 +01:00
|
|
|
// @author rubenwardy
|
|
|
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
|
|
|
|
2020-12-04 03:34:08 +01:00
|
|
|
const min = $("#min_rel");
|
|
|
|
const max = $("#max_rel");
|
2023-06-05 18:55:20 +02:00
|
|
|
const none = parseInt($("#min_rel option:first-child").attr("value"));
|
2020-12-04 03:34:08 +01:00
|
|
|
const warning = $("#minmax_warning");
|
2019-01-28 23:28:47 +01:00
|
|
|
|
|
|
|
function ver_check() {
|
2023-06-05 18:55:20 +02:00
|
|
|
const minv = parseInt(min.val());
|
|
|
|
const maxv = parseInt(max.val());
|
2019-01-28 23:28:47 +01:00
|
|
|
|
|
|
|
if (minv != none && maxv != none && minv > maxv) {
|
|
|
|
warning.show();
|
|
|
|
} else {
|
|
|
|
warning.hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
min.change(ver_check);
|
|
|
|
max.change(ver_check);
|