Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit fe8f474

Browse files
committed
Code cleanup from old permissions multiselect
1 parent 51a7aa0 commit fe8f474

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

src/assets/RbacAssetBundle.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class RbacAssetBundle extends \yii\web\AssetBundle
1212
];
1313

1414
public $js = [
15-
//'js/multiselect.min.js',
1615
'js/jstree.min.js',
1716
'js/jstree-double-panel.js',
1817
'js/rbac.js'

src/assets/js/multiselect.min.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/assets/js/rbac.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(function ($) {
22
$(document).ready(function(){
3-
//init_role_permissions_multiselect();
43
init_role_permissions_tree();
54
})
65

@@ -41,21 +40,4 @@
4140
});
4241
}
4342

44-
function init_role_permissions_multiselect() {
45-
if (! $('#allow_permissions').length) {
46-
return;
47-
}
48-
49-
$('#allow_permissions').multiselect({
50-
right: '#deny_permissions',
51-
sort: function(a, b) {
52-
console.log([$(a).data('weight'), $(b).data('weight')])
53-
return $(a).data('weight') > $(b).data('weight') ? 1 : -1;
54-
},
55-
search: {
56-
left: '<input type="text" name="q" class="form-control" placeholder="Search..." />',
57-
right: '<input type="text" name="q" class="form-control" placeholder="Search..." />',
58-
}
59-
});
60-
}
6143
})(jQuery);

0 commit comments

Comments
 (0)