From eacd01bb5a013382b347139dc06d49a2749c5a01 Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 8 Apr 2015 14:02:44 -0400 Subject: [PATCH] Remove faulty error conditions from search #2066 --- src/definitions/modules/search.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index 1291942d2..6fadaeb89 100644 --- a/src/definitions/modules/search.js +++ b/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);