Skip to content

A free open source IT asset/license management system

Removed duplicated permissions js code

snipef282a1ead7e6
diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php
index 26c3f39d65..47e143c1ac 100755
--- a/resources/views/users/edit.blade.php
+++ b/resources/views/users/edit.blade.php
@@ -697,28 +697,9 @@ $(document).ready(function() {
@endif
});
-
-
- // Check/Uncheck all radio buttons in the group
- $('tr.header-row input:radio').change(function() {
- value = $(this).attr('value');
- area = $(this).data('checker-group');
- $('.radiochecker-'+area+'[value='+value+']').prop('checked', true);
- });
-
- $('.header-name').click(function() {
- $(this).parent().nextUntil('tr.header-row').slideToggle(500);
- });
-
+
$('.tooltip-base').tooltip({container: 'body'})
- $(".superuser").change(function() {
- var perms = $(this).val();
- if (perms =='1') {
- $("#nonadmin").hide();
- } else {
- $("#nonadmin").show();
- }
- });
+
$('#genPassword').pGenerator({
'bind': 'click',
@@ -741,6 +722,7 @@ $(document).ready(function() {
document.cookie = "optional_user_info_open="+optional_user_info_open+'; path=/';
});
+
var all_cookies = document.cookie.split(';')
for(var i in all_cookies) {
var trimmed_cookie = all_cookies[i].trim(' ')