diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2016-10-11 14:45:36 +0300 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2016-10-11 14:45:36 +0300 |
commit | 40323cab8c467d92c8f750ff800546c9ebacb742 (patch) | |
tree | 179e21500fcb0ade642988d7f1a79ea37f402a14 /js | |
parent | f63aaeb631b7f1303409eb231497e3e161f2d426 (diff) |
Cleanup/refactor, remove debug code
Diffstat (limited to 'js')
-rw-r--r-- | js/admin.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/js/admin.js b/js/admin.js index 627c2615..7a27eda0 100644 --- a/js/admin.js +++ b/js/admin.js @@ -17,10 +17,9 @@ var documentsSettings = { saveGroups: function(groups) { var data = { - 'edit_groups': groups.join('|') + 'edit_groups': groups }; - console.log('posting to setSettings'); $.post( OC.filePath('richdocuments', 'ajax', 'admin.php'), data @@ -40,14 +39,6 @@ var documentsSettings = { } else { $('.edit-groups-enable').attr('checked', null); } - - $.get( - OC.generateUrl('/settings/users/users'), - { limit: 1, pattern: 'admin' }, - function(result) { - console.log(result); - } - ); }, initialize: function() { @@ -57,12 +48,6 @@ var documentsSettings = { $(document).on('change', '#edit_group_select', function() { var element = $(this).parent().find('input.edit-groups-enable'); var groups = $(this).val(); - if (groups && groups !== '') { - groups = groups.split('|'); - } else { - groups = []; - } - documentsSettings.saveGroups(groups); }); |