Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-10-11 15:51:35 +0300
committerGitHub <noreply@github.com>2016-10-11 15:51:35 +0300
commit18f441ab8fcc2a0d17ef7e40dedceac7a77f1426 (patch)
tree99ffc467a18171f09255d6c38fed9561a0144c8e
parenta5c3f6de810d8e85744780966b6d2b73c9d0c589 (diff)
parent40323cab8c467d92c8f750ff800546c9ebacb742 (diff)
Merge pull request #121 from pranavk/editgroups
Cleanup/refactor, remove debug code
-rw-r--r--js/admin.js17
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);
});