Add focus back to search input field after clicking on cross icon

This commit is contained in:
Hadi Nategh 2014-12-19 14:15:28 +00:00
parent 2021a8227e
commit 6138698b50

View File

@ -1938,7 +1938,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader,
{
self.search.input.after(
$j('<span class="ui-icon"></span>').click(
function() {self.search.input.val('');}
function() {self.search.input.val('');self.search.input.focus();}
)
);
}