From 81c81624be23c87796992c65a010914177b4b101 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 2 Mar 2014 20:59:10 -0500 Subject: [PATCH] CRM-13863 Focus first form element in popups --- js/Common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/Common.js b/js/Common.js index 4771f2f8c6..e7e480977a 100644 --- a/js/Common.js +++ b/js/Common.js @@ -964,6 +964,8 @@ CRM.validate = CRM.validate || { return false; }); } + // For convenience, focus the first field + $('input[type=text], textarea, select', this).filter(':visible').first().focus(); }); return widget; }; -- 2.25.1