Ignore:
Timestamp:
Jun 24, 2012, 9:18:26 PM (12 years ago)
Author:
grum
Message:

feature:2634- compatibility with Piwigo 2.4
+add some objects on js framework

File:
1 edited

Legend:

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

    r15373 r16012  
    22 * -----------------------------------------------------------------------------
    33 * file: ui.inputText.js
    4  * file version: 1.1.1
    5  * date: 2011-01-09
     4 * file version: 1.1.2
     5 * date: 2012-06-18
    66 *
    77 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses"
     
    1111 *   email    : grum@piwigo.com
    1212 *   website  : http://photos.grum.fr
    13  *   PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
    1413 *
    1514 *   << May the Little SpaceFrog be with you ! >>
     
    3130 * | 1.1.1   | 2011/01/31 | * add function ':clear' for 'languagesValues' method
    3231 * |         |            |
     32 * | 1.1.2   | 2012/06/18 | * improve memory managment
    3333 * |         |            |
    34  * |         |            |
     34 * |         |            | * fix bug on regExp option
    3535 * |         |            |
    3636 * |         |            |
     
    139139              $this
    140140                .unbind('.inputText')
     141                .removeData()
    141142                .css(
    142143                  {
     
    145146                  }
    146147                );
     148              delete $this;
    147149            }
    148150          );
     
    539541          var properties=object.data('properties');
    540542
    541           return(properties.re.exec(value))
     543          return(properties.re.test(value));
    542544        },
    543545
     
    570572          privateMethods.setTextAlign(object, (value.textAlign!=null)?value.textAlign:options.textAlign);
    571573
     574          privateMethods.setDisabled(object, (value.disabled!=null)?value.disabled:options.disabled);
     575
    572576          privateMethods.setEventChange(object, (value.change!=null)?value.change:options.change);
    573577
     
    598602          var objects=object.data('objects'),
    599603              properties=object.data('properties');
     604
     605          if(value=='check')
     606            value=privateMethods.isValid(object, properties.value);
    600607
    601608          if(properties.isValid!=value && properties.initialized)
     
    892899          }
    893900
    894           privateMethods.setIsValid(object, true);
     901          privateMethods.setIsValid(object, privateMethods.isValid(object, value));
    895902
    896903          properties.value=value;
Note: See TracChangeset for help on using the changeset viewer.