mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 03:23:46 +01:00
19 lines
366 B
JavaScript
19 lines
366 B
JavaScript
var min = $("#min_rel");
|
|
var max = $("#max_rel");
|
|
var none = $("#min_rel option:first-child").attr("value");
|
|
var warning = $("#minmax_warning");
|
|
|
|
function ver_check() {
|
|
var minv = min.val();
|
|
var maxv = max.val();
|
|
|
|
if (minv != none && maxv != none && minv > maxv) {
|
|
warning.show();
|
|
} else {
|
|
warning.hide();
|
|
}
|
|
}
|
|
|
|
min.change(ver_check);
|
|
max.change(ver_check);
|