diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-29 22:16:08 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-29 22:16:08 +0000 |
| commit | a42a9af5f4b869c84ec1a67268f74b365bd0e8bc (patch) | |
| tree | ab8944307ec1b697a63e1b7e5a30166ff764bf9f /plugins/acl/acl.js | |
| parent | 0e75c95acf063e482281e028c6e21b478864017f (diff) | |
Register ACL plugin for calendar task; send ajax requests to settings task
git-svn-id: https://svn.roundcube.net/trunk@5147 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/acl/acl.js')
| -rw-r--r-- | plugins/acl/acl.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index d78607690..4b1431ac3 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -1,7 +1,7 @@ /** * ACL plugin script * - * @version 0.6 + * @version 0.6.1 * @author Aleksander Machniak <alec@alec.pl> */ @@ -11,7 +11,7 @@ if (window.rcmail) { rcmail.acl_list_init(); // enable autocomplete on user input if (rcmail.env.acl_users_source) { - rcmail.init_address_input_events($('#acluser'), {action:'plugin.acl-autocomplete'}); + rcmail.init_address_input_events($('#acluser'), {action:'settings/plugin.acl-autocomplete'}); // fix inserted value rcmail.addEventListener('autocomplete_insert', function(e) { if (e.field.id != 'acluser') @@ -52,7 +52,7 @@ rcube_webmail.prototype.acl_delete = function() var users = this.acl_get_usernames(); if (users && users.length && confirm(this.get_label('acl.deleteconfirm'))) { - this.http_request('plugin.acl', '_act=delete&_user='+urlencode(users.join(',')) + this.http_request('settings/plugin.acl', '_act=delete&_user='+urlencode(users.join(',')) + '&_mbox='+urlencode(this.env.mailbox), this.set_busy(true, 'acl.deleting')); } @@ -82,7 +82,7 @@ rcube_webmail.prototype.acl_save = function() return; } - this.http_request('plugin.acl', '_act=save' + this.http_request('settings/plugin.acl', '_act=save' + '&_user='+urlencode(user) + '&_acl=' +rights + '&_mbox='+urlencode(this.env.mailbox) @@ -120,7 +120,7 @@ rcube_webmail.prototype.acl_mode_switch = function(elem) { this.env.acl_advanced = !this.env.acl_advanced; this.enable_command('acl-delete', 'acl-edit', false); - this.http_request('plugin.acl', '_act=list' + this.http_request('settings/plugin.acl', '_act=list' + '&_mode='+(this.env.acl_advanced ? 'advanced' : 'simple') + '&_mbox='+urlencode(this.env.mailbox), this.set_busy(true, 'loading')); |
