From: Coleman Watts Date: Mon, 3 Mar 2014 01:59:10 +0000 (-0500) Subject: CRM-13863 Focus first form element in popups X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81c81624be23c87796992c65a010914177b4b101;p=civicrm-core.git CRM-13863 Focus first form element in popups --- 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; };