Changeset 5263 in subversion


Ignore:
Timestamp:
Sep 21, 2011 1:35:04 PM (21 months ago)
Author:
alec
Message:
  • Make the plugin aware of autocomplete_* options
  • Fix non-working backspace key in name field
Location:
trunk/plugins/acl
Files:
3 edited

Legend:

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

    r5147 r5263  
    22 * ACL plugin script 
    33 * 
    4  * @version 0.6.1 
     4 * @version 0.6.2 
    55 * @author Aleksander Machniak <alec@alec.pl> 
    66 */ 
     
    316316    if (type == 'user') 
    317317        name_input.focus(); 
     318 
     319    // unfocus the list, make backspace key in name input field working 
     320    this.acl_list.blur(); 
    318321} 
    319322 
  • trunk/plugins/acl/acl.php

    r5147 r5263  
    44 * Folders Access Control Lists Management (RFC4314, RFC2086) 
    55 * 
    6  * @version 0.6.1 
     6 * @version 0.6.2 
    77 * @author Aleksander Machniak <alec@alec.pl> 
    88 * 
     
    8888 
    8989        $search = get_input_value('_search', RCUBE_INPUT_GPC, true); 
     90        $sid    = get_input_value('_id', RCUBE_INPUT_GPC); 
    9091        $users  = array(); 
    9192 
    9293        if ($this->init_ldap()) { 
    93             $this->ldap->set_pagesize(15); 
     94            $this->ldap->set_pagesize((int)$this->rc->config->get('autocomplete_max', 15)); 
    9495            $result = $this->ldap->search('*', $search); 
    9596 
     
    113114        sort($users, SORT_LOCALE_STRING); 
    114115 
    115         $this->rc->output->command('ksearch_query_results', $users, $search); 
     116        $this->rc->output->command('ksearch_query_results', $users, $search, $sid); 
    116117        $this->rc->output->send(); 
    117118    } 
     
    186187            'aclrights' => array($this, 'templ_rights'), 
    187188        )); 
     189 
     190        $this->rc->output->set_env('autocomplete_max', (int)$this->rc->config->get('autocomplete_max', 15)); 
     191        $this->rc->output->set_env('autocomplete_min_length', $this->rc->config->get('autocomplete_min_length')); 
     192        $this->rc->output->add_label('autocompletechars', 'autocompletemore'); 
    188193 
    189194        $args['form']['sharing'] = array( 
  • trunk/plugins/acl/skins/default/acl.css

    r5147 r5263  
    6262} 
    6363 
     64#acltable tr.unfocused td 
     65{ 
     66  color: #FFFFFF; 
     67  background-color: #929292; 
     68} 
     69 
    6470#acladvswitch 
    6571{ 
Note: See TracChangeset for help on using the changeset viewer.