From 3e3258a4b7ef3248efcc92332fc5d02ff983cf83 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 27 Jan 2024 19:55:43 +0200 Subject: [PATCH] cs ref --- client/src/views/role/record/table.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/client/src/views/role/record/table.js b/client/src/views/role/record/table.js index 07e1a5eca0..f501b63d16 100644 --- a/client/src/views/role/record/table.js +++ b/client/src/views/role/record/table.js @@ -390,7 +390,7 @@ class RoleRecordTableView extends View { for (const i in scopeList) { const scope = scopeList[i]; - const $rows = this.$el.find(`table.scope-level tr[data-name="${scope}"]`); + const $rows = $table.find(`tr[data-name="${scope}"]`); const value = $rows.find(`select[name="${scope}"]`).val(); @@ -557,18 +557,6 @@ class RoleRecordTableView extends View { Select.setValue($select, ''); Select.setOptions($select, options); Select.setValue($select, value); - - /*$select.find('option').each((i, o) => { - const $o = $(o); - - if (this.fieldLevelList.indexOf($o.val()) < this.fieldLevelList.indexOf(value)) { - $o.attr('disabled', 'disabled'); - } else { - $o.removeAttr('disabled'); - } - });*/ - - //this.controlSelectColor($edit); } controlSelect(scope, action, limitValue, dontChange) { @@ -839,8 +827,6 @@ class RoleRecordTableView extends View { if (matchedList.length === 0) { this.$el.find('table tr.item-row').addClass('hidden'); - //$noData.removeClass('hidden'); - return; }