diff --git a/main/document/create_document.php b/main/document/create_document.php index ab251116bf..f0708f39c9 100644 --- a/main/document/create_document.php +++ b/main/document/create_document.php @@ -46,114 +46,13 @@ $(document).ready(function() { ); }); -function InnerDialogLoaded() { - /* - var B=new window.frames[0].FCKToolbarButton(\'Templates\',window.frames[0].FCKLang.Templates); - return B.ClickFrame(); - */ - - var isIE = (navigator.appVersion.indexOf(\'MSIE\') != -1) ? true : false ; - var EditorFrame = null ; - - if ( !isIE ) { - EditorFrame = window.frames[0] ; - } else { - // For this dynamic page window.frames[0] enumerates frames in a different order in IE. - // We need a sure method to locate the frame that contains the online editor. - for ( var i = 0, n = window.frames.length ; i < n ; i++ ) { - if ( window.frames[i].location.toString().indexOf(\'InstanceName=content\') != -1 ) { - EditorFrame = window.frames[i] ; - } - } - } - - if ( !EditorFrame ) { - return null ; - } - - var B = new EditorFrame.FCKToolbarButton(\'Templates\', EditorFrame.FCKLang.Templates); - return B.ClickFrame(); -}; - - var temp=false; - var temp2=false; - var load_default_template = '.((isset($_POST['submit']) || empty($_SERVER['QUERY_STRING'])) ? 'false' : 'true').'; - - function FCKeditor_OnComplete( editorInstance ) { - editorInstance.Events.AttachEvent( \'OnSelectionChange\', check_for_title ) ; - document.getElementById(\'frmModel\').innerHTML = "