Skip to content

Commit

Permalink
Merge pull request #4756 from mozilla/revert-4691-search-on-click
Browse files Browse the repository at this point in the history
Revert "Fix search-on-click"
  • Loading branch information
muffinresearch committed Feb 23, 2017
2 parents 8a89f33 + 134e21a commit 7fa16ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions static/js/impala/site_suggestions.js
Expand Up @@ -12,11 +12,6 @@
// Update the 'Search add-ons for <b>"{addon}"</b>' text.
settings['$results'].find('p b').html(format('"{0}"',
settings.searchTerm));

// Update the .sel link.
var searchUrl = settings['$form'].attr('action') + '?q={0}';
settings['$results'].find('.sel').attr('href', format(searchUrl,
settings.urlSearchTerm));

var li_item = template(
'<li><a href="{url}"><span {cls} {icon}>{name}</span>{subtitle}</a></li>'
Expand Down
4 changes: 1 addition & 3 deletions static/js/impala/suggestions.js
Expand Up @@ -130,14 +130,12 @@ $.fn.searchSuggestions = function($results, processCallback, searchType) {
$results.filter('.visible').removeClass('visible');
return;
}
var urlVal = encodeURIComponent($self.val());

// Required data to send to the callback.
var settings = {
'$results': $results,
'$form': $form,
'searchTerm': val,
'urlSearchTerm': urlVal
'searchTerm': val
};

// Optional data for callback.
Expand Down

0 comments on commit 7fa16ea

Please sign in to comment.