Changeset 5147 in subversion


Ignore:
Timestamp:
Aug 29, 2011 6:16:08 PM (21 months ago)
Author:
thomasb
Message:

Register ACL plugin for calendar task; send ajax requests to settings task

Location:
trunk/plugins/acl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/acl/acl.js

    r5084 r5147  
    22 * ACL plugin script 
    33 * 
    4  * @version 0.6 
     4 * @version 0.6.1 
    55 * @author Aleksander Machniak <alec@alec.pl> 
    66 */ 
     
    1212            // enable autocomplete on user input 
    1313            if (rcmail.env.acl_users_source) { 
    14                 rcmail.init_address_input_events($('#acluser'), {action:'plugin.acl-autocomplete'}); 
     14                rcmail.init_address_input_events($('#acluser'), {action:'settings/plugin.acl-autocomplete'}); 
    1515                // fix inserted value 
    1616                rcmail.addEventListener('autocomplete_insert', function(e) { 
     
    5353 
    5454    if (users && users.length && confirm(this.get_label('acl.deleteconfirm'))) { 
    55         this.http_request('plugin.acl', '_act=delete&_user='+urlencode(users.join(',')) 
     55        this.http_request('settings/plugin.acl', '_act=delete&_user='+urlencode(users.join(',')) 
    5656            + '&_mbox='+urlencode(this.env.mailbox), 
    5757            this.set_busy(true, 'acl.deleting')); 
     
    8383    } 
    8484 
    85     this.http_request('plugin.acl', '_act=save' 
     85    this.http_request('settings/plugin.acl', '_act=save' 
    8686        + '&_user='+urlencode(user) 
    8787        + '&_acl=' +rights 
     
    121121    this.env.acl_advanced = !this.env.acl_advanced; 
    122122    this.enable_command('acl-delete', 'acl-edit', false); 
    123     this.http_request('plugin.acl', '_act=list' 
     123    this.http_request('settings/plugin.acl', '_act=list' 
    124124        + '&_mode='+(this.env.acl_advanced ? 'advanced' : 'simple') 
    125125        + '&_mbox='+urlencode(this.env.mailbox), 
  • trunk/plugins/acl/acl.php

    r5084 r5147  
    44 * Folders Access Control Lists Management (RFC4314, RFC2086) 
    55 * 
    6  * @version 0.6 
     6 * @version 0.6.1 
    77 * @author Aleksander Machniak <alec@alec.pl> 
    88 * 
     
    2626class acl extends rcube_plugin 
    2727{ 
    28     public $task = 'settings|addressbook'; 
     28    public $task = 'settings|addressbook|calendar'; 
    2929 
    3030    private $rc; 
     
    4545        // kolab_addressbook plugin 
    4646        $this->add_hook('addressbook_form', array($this, 'folder_form')); 
     47        $this->add_hook('calendar_form_kolab', array($this, 'folder_form')); 
    4748        // Plugin actions 
    4849        $this->register_action('plugin.acl', array($this, 'acl_actions')); 
     
    527528        $attrib    = array( 
    528529            'name' => 'rcmyrights', 
    529             'style' => 'padding: 0 15px;', 
     530            'style' => 'margin:0; padding:0 15px;', 
    530531        ); 
    531532 
  • trunk/plugins/acl/skins/default/acl.css

    r5000 r5147  
    8282#aclform 
    8383{ 
    84   top: 100px; 
     84  top: 80px; 
    8585  width: 480px; 
    8686  padding: 10px; 
Note: See TracChangeset for help on using the changeset viewer.