From d2bb52723a2e635cb92eceeefc4154a9d51d060c Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Mon, 27 Oct 2008 17:01:12 +0100 Subject: [PATCH] [svn r16628] fix a bug with default template (it was loaded when editing a doc) --- main/document/create_document.php | 9 +++++---- main/inc/lib/fckeditor/editor/dialog/fck_template.html | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/main/document/create_document.php b/main/document/create_document.php index 5a815c3429..d5562c7040 100644 --- a/main/document/create_document.php +++ b/main/document/create_document.php @@ -1,5 +1,5 @@ function InnerDialogLoaded() -{ - var B=new window.frames[0].FCKToolbarButton(\'Templates\',window.frames[0].FCKLang.Templates); +{ + var B=new window.frames[0].FCKToolbarButton(\'Templates\',window.frames[0].FCKLang.Templates); return B.ClickFrame(); }; var temp=false; var temp2=false; var use_document_title='.api_get_setting('use_document_title').'; + var load_default_template = true; function launch_templates() { @@ -68,7 +69,7 @@ function InnerDialogLoaded() function FCKeditor_OnComplete( editorInstance ) { editorInstance.Events.AttachEvent( \'OnSelectionChange\', check_for_title ) ; - document.getElementById(\'frmModel\').innerHTML = "