]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16486 Activated autopilot for test table install/upgrade
authornicolasconnault <nicolasconnault>
Thu, 18 Sep 2008 14:32:43 +0000 (14:32 +0000)
committernicolasconnault <nicolasconnault>
Thu, 18 Sep 2008 14:32:43 +0000 (14:32 +0000)
lib/scroll_to_errors.js

index 454fb5dbe38d33783ba6515acdf203ef51f49ae8..3038837e2d3624b5b6fe987a146e5377b92d959a 100644 (file)
         // 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
         }
     };