Fixed javascript for cases where htmleditor is not available.

This commit is contained in:
vyshane
2006-03-27 03:02:26 +00:00
parent 173fc40f56
commit 1ef46cbeaa
+1 -1
View File
@@ -75,7 +75,7 @@
// For the javascript for inserting template tags: initialise the default textarea to
// 'edit_template' - it is always present in all different possible views.
$bodytag = 'onload="';
$bodytag .= 'currEditor = edit_template; ';
$bodytag .= 'if (typeof(currEditor) != \'undefined\') { currEditor = edit_template; } ';
$bodytag .= 'currTextarea = document.tempform.template;';
$bodytag .= '" ';