Browse Source

Merge pull request #1009 from hockeybtm/patch-1

Update search to accept a source that is an array.
pull/1063/head
Jack Lukic 10 years ago
parent
commit
8e61f7f317
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