File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 737
737
return {
738
738
validatorName : name ,
739
739
url : $this . data ( "validation" + name + "Ajax" ) ,
740
+ ajaxType : $this . data ( "validation" + name + "Type" ) ,
740
741
lastValue : $this . val ( ) ,
741
742
lastValid : true ,
742
743
lastFinished : true
747
748
return validator . lastValid === false ;
748
749
}
749
750
751
+ var ajaxType = validator . ajaxType || 'GET' ;
752
+
750
753
if ( validator . lastFinished === true ) {
751
754
validator . lastValue = value ;
752
755
validator . lastValid = true ;
755
758
url : validator . url ,
756
759
data : "value=" + encodeURIComponent ( value ) + "&field=" + $this . attr ( "name" ) ,
757
760
dataType : "json" ,
761
+ type : ajaxType ,
758
762
success : function ( data ) {
759
763
if ( "" + validator . lastValue === "" + data . value ) {
760
764
validator . lastValid = ! ! ( data . valid ) ;
You can’t perform that action at this time.
0 commit comments