From: nicolasconnault Date: Thu, 18 Sep 2008 14:32:43 +0000 (+0000) Subject: MDL-16486 Activated autopilot for test table install/upgrade X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=00fed722d087c822184c067b02988ba66892df5a;p=moodle.git MDL-16486 Activated autopilot for test table install/upgrade --- diff --git a/lib/scroll_to_errors.js b/lib/scroll_to_errors.js index 454fb5dbe3..3038837e2d 100644 --- a/lib/scroll_to_errors.js +++ b/lib/scroll_to_errors.js @@ -146,7 +146,7 @@ // automatically scroll to the first warning or continue button initScroll(warnings[0]); if (statusOk && installautopilot) {//global JS variable - document.getElementsByClassName('singlebutton')[0].firstChild.submit(); // Changed this to work for test tables install + document.getElementsByClassName('singlebutton')[0].childNodes[0].submit(); // Changed this to work for test tables install // document.forms[0].submit();//auto submit } };