Fix bulk change form

This commit is contained in:
rubenwardy 2019-01-28 23:54:00 +00:00
parent 0e5c1f83ff
commit 0fd3ed8f6b
1 changed files with 2 additions and 2 deletions

View File

@ -46,10 +46,10 @@
var toggle = $("#set_" + type);
function on_change() {
if (toggle.is(":checked")) {
$("#" + type + "_rel").removeAttr("disabled");
// $("#" + type + "_rel").removeAttr("disabled");
$("#" + type + "_rel").parent().css("opacity", "1");
} else {
$("#" + type + "_rel").attr("disabled", "disabled");
// $("#" + type + "_rel").attr("disabled", "disabled");
$("#" + type + "_rel").parent().css("opacity", "0.4");
$("#" + type + "_rel").val($("#" + type + "_rel option:first-child").attr("value"));
$("#" + type + "_rel").change();