Bug Tracker

Ticket #2660: jquery.validate.js.patch

File jquery.validate.js.patch, 482 bytes (added by etal, 9 months ago)

patch to evaluate string if needed

  • ..\eLearning\eLearning\Scripts\jquery.validate.

    old new  
    714714        }); 
    715715        jQuery.each(['rangelength', 'range'], function() { 
    716716            if (rules[this]) { 
     717                if(typeof(rules[this]) === "string") 
     718                { 
     719                    rules[this] = eval(rules[this]); 
     720                } 
    717721                rules[this] = [Number(rules[this][0]), Number(rules[this][1])]; 
    718722            } 
    719723        });