|
@@ -141,7 +141,10 @@ $(document).ready(function () {
|
|
|
|
|
|
postData(window.location.pathname + '/load', {main: true, roles: scRoles}, function (result) {
|
|
|
for (const r of scRoles) {
|
|
|
- if (r != 0) $('input[audit-order=' + r + ']')[0].checked = true;
|
|
|
+ if (r && r != 0) {
|
|
|
+ const check = $('input[audit-order=' + r + ']')[0];
|
|
|
+ if (check) check.checked = true;
|
|
|
+ }
|
|
|
}
|
|
|
scTree.loadDatas(result.main.ledger);
|
|
|
scPos.loadDatas(result.main.pos);
|