]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for MDL-6966.
authorvyshane <vyshane>
Tue, 23 Jan 2007 05:42:15 +0000 (05:42 +0000)
committervyshane <vyshane>
Tue, 23 Jan 2007 05:42:15 +0000 (05:42 +0000)
mod/data/templates.php

index aa099a2bcc1f8075d88a94fc6adc021eb791ad11..e6f09dde17f4816633017f225a4e43e83f42e782 100755 (executable)
@@ -78,7 +78,7 @@
 
     $bodytag = 'onload="';
     $bodytag .= 'if (typeof('.$editorobj.') != \'undefined\') { currEditor = '.$editorobj.'; } ';
-    $bodytag .= 'currTextarea = getElementById(\'tempform\').template;';
+    $bodytag .= 'currTextarea = document.getElementById(\'tempform\').template;';
     $bodytag .= '" ';
 
     // Javascript to insert the field tags into the textarea.