Redundant code
Since #4775 has been merged, some code became unreachable. The `href` property of `.sel` link never changes.
This commit is contained in:
Родитель
4a59ee4b4e
Коммит
f9f0e7e0fb
|
@ -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);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче