Ignore:
Timestamp:
May 27, 2012, 9:50:54 AM (12 years ago)
Author:
grum
Message:

feature:2436 - Compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/js/ui.inputList.js

    r8961 r15340  
    22 * -----------------------------------------------------------------------------
    33 * file: ui.inputList.js
    4  * file version: 1.0.0
    5  * date: 2010-11-02
     4 * file version: 1.0.1
     5 * date: 2012-05-25
    66 *
    77 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses"
     
    2424 * | 1.0.0   | 2010/10/10 | first release
    2525 * |         |            |
    26  * |         |            |
     26 * | 1.0.1   | 2012/05/25 | fix bug with jquery 1.7.2
     27 * |         |            |  . display list now works :)
    2728 * |         |            |
    2829 * |         |            |
     
    107108                        {
    108109                          privateMethods.displaySelector($this, !$this.data('properties').selectorVisible);
    109                           $(this).focus();
     110                          //$(this).focus();  // if get the focus, it hide the dorp-down list.. ?
    110111                        }
    111112                      ),
     
    166167              privateMethods.setOptions($this, opt);
    167168
    168               if($this.text()!='') 
     169              if($this.text()!='')
    169170              {
    170171                var tmp=$.parseJSON($.trim($this.text())),
     
    180181                  values=tmp.values;
    181182                }
    182                
     183
    183184                if(tmp.selected!=null) selectedValues=tmp.selected;
    184                
    185                 privateMethods.setItems($this, values); 
    186                 privateMethods.setValue($this, selectedValues); 
    187                
     185
     186                privateMethods.setItems($this, values);
     187                privateMethods.setValue($this, selectedValues);
     188
    188189              }
    189190
     
    560561              {
    561562                for(var i=0;i<properties.items.length;i++)
    562                 {   
     563                {
    563564                  if($.inArray(i, properties.index)==-1)
    564565                    returned.push(properties.items[i].value);
Note: See TracChangeset for help on using the changeset viewer.