From 1ef46cbeaa6f9050369a3c9a101aebaaee3c4e38 Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 27 Mar 2006 03:02:26 +0000 Subject: [PATCH] Fixed javascript for cases where htmleditor is not available. --- mod/data/templates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/templates.php b/mod/data/templates.php index 34dc1d68ac..56dc23a596 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -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 .= '" '; -- 2.39.5