Browse Source

Add better error when API module not included

pull/1243/head
jlukic 10 years ago
parent
commit
c2dfe4521a
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/modules/search.js

4
src/definitions/modules/search.js

@ -267,7 +267,7 @@ $.fn.search = function(parameters) {
else if(settings.apiSettings) {
module.search.remote(searchTerm);
}
else if($.api !== undefined && $.api.settings.api.search !== undefined) {
else if($.fn.api !== undefined && $.api.settings.api.search !== undefined) {
module.debug('Searching with default search API endpoint');
settings.apiSettings = {
action: 'search'
@ -713,7 +713,7 @@ $.fn.search.settings = {
},
error : {
source : 'No source or api action specified',
source : 'Cannot search. No source used, and Semantic API module was not included',
noResults : 'Your search returned no results',
logging : 'Error in debug logging, exiting.',
noTemplate : 'A valid template name was not specified.',

Loading…
Cancel
Save