Ticket #2874: whenNoMatch.patch
File whenNoMatch.patch, 607 bytes (added by , 14 years ago) |
---|
-
jquery.autocomplete.js
284 284 function (result){ 285 285 // if no value found, clear the input box 286 286 if( !result ) $input.val(""); 287 // ash: if we have function for cases where there is no match - call it 288 if (options.whenNoMatch && jQuery.isFunction(options.whenNoMatch)) options.whenNoMatch($input); 287 289 } 288 290 ); 289 291 } … … 732 734 field.focus(); 733 735 }; 734 736 735 })(jQuery); 736 No newline at end of file 737 })(jQuery);