From c680ea8b4f188a1c74d8e172c02f5f59ba95d6d7 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 3 Oct 2005 23:16:41 +0000 Subject: [PATCH] Fix Xinha control on submit new version page. We should only create a 'editor2' control for a new version as only the 'editor2' textarea is created for new versions. --- appsubmit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/appsubmit.php b/appsubmit.php index 304f573..4bb8f6d 100644 --- a/appsubmit.php +++ b/appsubmit.php @@ -117,8 +117,6 @@ if (isset($_REQUEST['apptype'])) // header apidb_header("Submit Application"); - HtmlAreaLoaderScript(array("editor", "editor2")); - // show add to queue form echo '
'."\n"; echo "

This page is for submitting new applications to be added to this\n"; @@ -160,6 +158,8 @@ if (isset($_REQUEST['apptype'])) // new application and version if ($_REQUEST['apptype'] == 1) { + HtmlAreaLoaderScript(array("editor", "editor2")); + echo html_frame_start("New Application Form",400,"",0); echo "\n"; echo '',"\n"; @@ -198,6 +198,8 @@ if (isset($_REQUEST['apptype'])) // new version else { + HtmlAreaLoaderScript(array("editor2")); + echo html_frame_start("New Version Form",400,"",0); echo "
Application name
\n";