Browse Source

Remove faulty error conditions from search #2066

pull/2092/head
jlukic 9 years ago
parent
commit
eacd01bb5a
1 changed files with 1 additions and 11 deletions
  1. 12
      src/definitions/modules/search.js

12
src/definitions/modules/search.js

@ -362,17 +362,7 @@ $.fn.search = function(parameters) {
module.search.local(searchTerm);
}
else if( module.can.useAPI() ) {
if(settings.apiSettings) {
module.debug('Searching with specified API settings', settings.apiSettings);
module.search.remote(searchTerm);
}
else if($.api.settings.api.search !== undefined) {
module.debug('Searching with default search API endpoint');
module.search.remote(searchTerm);
}
else {
module.error(error.noEndpoint);
}
module.search.remote(searchTerm);
}
else {
module.error(error.source);

Loading…
Cancel
Save