From 6138698b50c8ef29ed002749fd66a54804cb7975 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 19 Dec 2014 14:15:28 +0000 Subject: [PATCH] Add focus back to search input field after clicking on cross icon --- etemplate/js/et2_extension_nextmatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index f21979c02f..4d79656bcd 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -1938,7 +1938,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader, { self.search.input.after( $j('').click( - function() {self.search.input.val('');} + function() {self.search.input.val('');self.search.input.focus();} ) ); }