Show More
@@ -84,22 +84,22 b'' | |||||
84 | <script> |
|
84 | <script> | |
85 | $(document).ready(function(){ |
|
85 | $(document).ready(function(){ | |
86 | var setCopyPermsOption = function(group_val){ |
|
86 | var setCopyPermsOption = function(group_val){ | |
87 | if(group_val != "-1"){ |
|
87 | if(group_val !== "-1"){ | |
88 | $('#copy_perms').show() |
|
88 | $('#copy_perms').show() | |
89 | } |
|
89 | } | |
90 | else{ |
|
90 | else{ | |
91 | $('#copy_perms').hide(); |
|
91 | $('#copy_perms').hide(); | |
92 | } |
|
92 | } | |
93 | } |
|
93 | }; | |
94 | $("#group_parent_id").select2({ |
|
94 | $("#group_parent_id").select2({ | |
95 | 'containerCssClass': "drop-menu", |
|
95 | 'containerCssClass': "drop-menu", | |
96 | 'dropdownCssClass': "drop-menu-dropdown", |
|
96 | 'dropdownCssClass': "drop-menu-dropdown", | |
97 | 'dropdownAutoWidth': true |
|
97 | 'dropdownAutoWidth': true | |
98 | }); |
|
98 | }); | |
99 | setCopyPermsOption($('#group_parent_id').val()) |
|
99 | setCopyPermsOption($('#group_parent_id').val()); | |
100 | $("#group_parent_id").on("change", function(e) { |
|
100 | $("#group_parent_id").on("change", function(e) { | |
101 | setCopyPermsOption(e.val) |
|
101 | setCopyPermsOption(e.val) | |
102 | }) |
|
102 | }); | |
103 | $('#group_name').focus(); |
|
103 | $('#group_name').focus(); | |
104 | }) |
|
104 | }) | |
105 | </script> |
|
105 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now