File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ $.fn.form = function(parameters) {
336
336
}
337
337
} ,
338
338
blank : function ( $field ) {
339
- return $ . trim ( $field . val ( ) ) === '' ;
339
+ return String ( $field . val ( ) ) . trim ( ) === '' ;
340
340
} ,
341
341
valid : function ( field ) {
342
342
var
@@ -1264,7 +1264,7 @@ $.fn.form = function(parameters) {
1264
1264
// cast to string avoiding encoding special values
1265
1265
value = ( value === undefined || value === '' || value === null )
1266
1266
? ''
1267
- : ( settings . shouldTrim ) ? $ . trim ( value + '' ) : String ( value + '' )
1267
+ : ( settings . shouldTrim ) ? String ( value + '' ) . trim ( ) : String ( value + '' )
1268
1268
;
1269
1269
return ruleFunction . call ( field , value , ancillary , $module ) ;
1270
1270
}
Original file line number Diff line number Diff line change @@ -1773,7 +1773,7 @@ $.fn.dropdown = function(parameters) {
1773
1773
return $text . text ( ) ;
1774
1774
} ,
1775
1775
query : function ( ) {
1776
- return $ . trim ( $search . val ( ) ) ;
1776
+ return String ( $search . val ( ) ) . trim ( ) ;
1777
1777
} ,
1778
1778
searchWidth : function ( value ) {
1779
1779
value = ( value !== undefined )
@@ -1916,8 +1916,8 @@ $.fn.dropdown = function(parameters) {
1916
1916
return ( $choice . data ( metadata . text ) !== undefined )
1917
1917
? $choice . data ( metadata . text )
1918
1918
: ( preserveHTML )
1919
- ? $ . trim ( $ choice. html ( ) )
1920
- : $ . trim ( $ choice. text ( ) )
1919
+ ? $choice . html ( ) . trim ( )
1920
+ : $choice . text ( ) . trim ( )
1921
1921
;
1922
1922
}
1923
1923
} ,
@@ -1929,11 +1929,11 @@ $.fn.dropdown = function(parameters) {
1929
1929
return ( $choice . data ( metadata . value ) !== undefined )
1930
1930
? String ( $choice . data ( metadata . value ) )
1931
1931
: ( typeof choiceText === 'string' )
1932
- ? $ . trim (
1932
+ ? String (
1933
1933
settings . ignoreSearchCase
1934
1934
? choiceText . toLowerCase ( )
1935
1935
: choiceText
1936
- )
1936
+ ) . trim ( )
1937
1937
: String ( choiceText )
1938
1938
;
1939
1939
} ,
You can’t perform that action at this time.
0 commit comments