]> git.mjollnir.org Git - moodle.git/commitdiff
Fix broken JS.
authortjhunt <tjhunt>
Thu, 18 Jan 2007 12:55:46 +0000 (12:55 +0000)
committertjhunt <tjhunt>
Thu, 18 Jan 2007 12:55:46 +0000 (12:55 +0000)
lib/javascript-static.js

index 6641e2d37192f7ac7fd64f680a56e85ff51cc9c1..cb09d37c0c008b54e8914bacbca73ae7c1c6bf58 100644 (file)
@@ -139,7 +139,7 @@ function submitFormById(id) {
     if(!theform) {
         return false;
     }
-    if(theform.tagName != 'form') {
+    if(theform.tagName.toLowerCase() != 'form') {
         return false;
     }
     if(!theform.onsubmit || theform.onsubmit()) {