From f9f0e7e0fb4cb3463bb0899ed6787199661c94f4 Mon Sep 17 00:00:00 2001 From: Yevhen Date: Tue, 28 Feb 2017 13:32:27 +0200 Subject: [PATCH] Redundant code Since #4775 has been merged, some code became unreachable. The `href` property of `.sel` link never changes. --- static/js/impala/suggestions.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/static/js/impala/suggestions.js b/static/js/impala/suggestions.js index 0528191208..f76eae4150 100644 --- a/static/js/impala/suggestions.js +++ b/static/js/impala/suggestions.js @@ -184,13 +184,6 @@ $.fn.searchSuggestions = function($results, processCallback, searchType) { $self.blur(clearCurrentSuggestions); $form.submit(function(e) { - var $sel = $results.find('.sel'); - if ($sel.length && $sel.eq(0).attr('href') != '#') { - e.stopPropagation(); - e.preventDefault(); - $self.val(''); - $sel[0].click(); - } $self.blur(); clearCurrentSuggestions(e); });