diff --git a/call.php b/call.php index 0a801be3..0ed70934 100644 --- a/call.php +++ b/call.php @@ -231,7 +231,7 @@ if (isset($_GET['newstate'])) } -xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js")); +xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js","include/jquery-ui/js/jquery-1.4.2.min.js")); $state = is_on_call($operator_id); switch($state) @@ -363,6 +363,8 @@ switch($state) if ($rn) // a note is required to be entered { print "




"; + //give focus on load + print ''; //put these lower on the screen so they don't get "automatically" clicked print "

" . T_("End case") . "

"; print "

" . T_("End work") . "

"; @@ -384,6 +386,7 @@ switch($state) if ($rn) // a note is required to be entered { print "




"; + print ''; print "

" . T_("End case") . "

"; print "

" . T_("End work") . "

"; } diff --git a/include/limesurvey/templates/quexs/endpage.pstpl b/include/limesurvey/templates/quexs/endpage.pstpl index ab51580e..61c5e50e 100644 --- a/include/limesurvey/templates/quexs/endpage.pstpl +++ b/include/limesurvey/templates/quexs/endpage.pstpl @@ -5,4 +5,8 @@ if(typeof Custom_On_Load == 'function'){ Custom_On_Load(); } + $(document).ready(function() { + $(":text:visible:enabled:first").focus(); + $("textarea:first").focus(); + });