Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions searchbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
},

process: function(terms) {
//
var blank_check = terms.replace(/\s/g, '');
if(blank_check == ''){return false;}
//
var path = $.searchbox.settings.url.split('?'),
query = [$.searchbox.settings.param, '=', terms].join(''),
base = path[0], params = path[1], query_string = query
Expand Down