Bug Tracker

Changeset 5563

Show
Ignore:
Timestamp:
05/12/08 11:14:14 (7 months ago)
Author:
joern.zaefferer
Message:

validate: Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compability with AIR

Location:
trunk/plugins/validate
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/validate/changelog.txt

    r5561 r5563  
    1 1.2.2 / 1.3 
     11.3 
    22--- 
    33* Fixed invalid-form event, now only triggered when form is invalid 
     
    1414* Allow both button and input elements for cancel buttons (via class="cancel") 
    1515* Fixed #2215: Fixed message display to call unhighlight as part of showing and hiding messages, no more visual side-effects while checking an element and extracted validator.checkForm to validate a form without UI sideeffects 
     16* Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compability with AIR 
    1617 
    17181.2.1 
  • trunk/plugins/validate/jquery.validate.js

    r5561 r5563  
    150150jQuery.extend(jQuery.expr[":"], { 
    151151    // http://docs.jquery.com/Plugins/Validation/blank 
    152     blank: "!jQuery.trim(a.value)", 
     152    blank: function(a) {return !jQuery.trim(a.value);}, 
    153153    // http://docs.jquery.com/Plugins/Validation/filled 
    154     filled: "!!jQuery.trim(a.value)", 
     154    filled: function(a) {return !!jQuery.trim(a.value);}, 
    155155    // http://docs.jquery.com/Plugins/Validation/unchecked 
    156     unchecked: "!a.checked" 
     156    unchecked: function(a) {return !a.checked;} 
    157157}); 
     158 
    158159 
    159160jQuery.format = function(source, params) { 
  • trunk/plugins/validate/todo

    r5247 r5563  
    22--- 
    33 
    4 re-write custom selectors as functions 
     4- checkout datejs.com for a proper date implementation -> complete but very heavy parser, currently overkill 
    55 
    6 - figure out how to deal with array like structures 
    7     - http://www.janepatrick.co.uk/admin/test/associative.php 
    8     - http://www.janepatrick.co.uk/admin/test/associative-select.php 
    9 - checkout datejs.com for a proper date implementation 
    106- provide method to validate form/field without UI side-effects 
    117jQuery.fn.validForm = function() {