Fixed undefined error in admin_customers.php

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2015-08-19 07:16:05 +02:00
parent a6473695eb
commit 62559dd2b4
2 changed files with 3 additions and 3 deletions

View File

@@ -573,7 +573,7 @@ input {
border-radius:3px;
}
input[disabled] {
input[disabled], input[readonly] {
cursor: not-allowed;
background-color: #eee;
}

View File

@@ -53,13 +53,13 @@ $(document).ready(function() {
$("input[name$='_ul']").each(function() {
var fieldname = $(this).attr("name").substring(0, $(this).attr("name").length - 3);
$("input[name='" + fieldname + "']").prop({
disabled: $(this).is(":checked")
readonly: $(this).is(":checked")
});
});
$("input[name$='_ul']").change(function() {
var fieldname = $(this).attr("name").substring(0, $(this).attr("name").length - 3);
$("input[name='" + fieldname + "']").prop({
disabled: $(this).is(":checked")
readonly: $(this).is(":checked")
}).focus();
});
// Enable autoselect in configfules