Browse Source

Update search to accept a source that is an array.

When using this version of the file, my old code broke and i could no longer pass an array in as the data.  This will allow people to pass in an array as well as an object.
pull/1009/head
hockeybtm 10 years ago
parent
commit
7a4663e3f9
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/modules/search.js

4
src/definitions/modules/search.js

@ -243,7 +243,7 @@ $.fn.search = function(parameters) {
}
else {
module.debug("Querying for '" + searchTerm + "'");
if($.isPlainObject(settings.source)) {
if($.isPlainObject(settings.source) || $.isArray(settings.source)) {
module.search.local(searchTerm);
}
else if(settings.apiSettings) {
@ -811,4 +811,4 @@ $.fn.search.settings = {
}
};
})( jQuery, window , document );
})( jQuery, window , document );
Loading…
Cancel
Save