Browse Source

[svn r15298] List of templates now working in 1024x768(see FS#2528)

Julio Montoya 17 years ago
parent
commit
4823d80828
2 changed files with 8 additions and 12 deletions
  1. 5 9
      main/document/create_document.php
  2. 3 3
      main/document/edit_document.php

+ 5 - 9
main/document/create_document.php

@@ -1,5 +1,5 @@
 <?php
-// $Id: create_document.php 15272 2008-05-13 17:42:48Z yannoo $
+// $Id: create_document.php 15298 2008-05-15 14:58:01Z juliomontoya $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -42,18 +42,15 @@
 
 // name of the language file that needs to be included 
 $language_file = 'document';
-
 include ('../inc/global.inc.php');
-
 $_SESSION['whereami'] = 'document/create';
-
 $this_section = SECTION_COURSES;
 
 $htmlHeadXtra[]='<script>
 	
 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();
 };	
 
@@ -64,7 +61,6 @@ function InnerDialogLoaded()
 	function launch_templates()
 	{		
 		//document.getElementById(\'frmModel\').style.display="block";				
-		document.getElementById(\'frmModel\').innerHTML = "<iframe height=600px; width=230; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
 		//document.getElementById(\'content___Frame\').width=\'70%\'; 		
 		//window.frames[0].FCKToolbarItems.GetItem("Template").Click;
 	}
@@ -72,7 +68,7 @@ function InnerDialogLoaded()
 	function FCKeditor_OnComplete( editorInstance )
 	{
 		editorInstance.Events.AttachEvent( \'OnSelectionChange\', check_for_title ) ;
-		document.getElementById(\'frmModel\').innerHTML = "<iframe height=600px; width=230; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";	
+		document.getElementById(\'frmModel\').innerHTML = "<iframe height=950px; width=100%; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";	
 	}
 
 	function check_for_title()
@@ -339,7 +335,7 @@ $form->addElement('submit', 'submit', get_lang('Ok'));
 $form->setDefaults($default);
 
 // HTML
-$form->addElement('html','<div id="frmModel" style="display:block; height:600px;width:100px; position:absolute; top:135px; left:1%;"></div>');
+$form->addElement('html','<div id="frmModel" style="display:block; height:950px;width:20%; position:absolute; top:135px; left:1px;"></div>');
 
 // If form validates -> save the new document
 if ($form->validate())

+ 3 - 3
main/document/edit_document.php

@@ -1,4 +1,4 @@
-<?php // $Id: edit_document.php 15291 2008-05-14 22:26:37Z juliomontoya $
+<?php // $Id: edit_document.php 15298 2008-05-15 14:58:01Z juliomontoya $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -71,7 +71,7 @@ function InnerDialogLoaded()
 		
 function FCKeditor_OnComplete( editorInstance )
 {
-	document.getElementById(\'frmModel\').innerHTML = "<iframe height=600px; width=230; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";	
+	document.getElementById(\'frmModel\').innerHTML = "<iframe height=950px; width=100%; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";	
 }
 		
 
@@ -589,7 +589,7 @@ if (api_is_allowed_to_edit() || GroupManager :: is_user_in_group($_user['user_id
 		$defaults['newComment'] = $oldComment;
 		$form->setDefaults($defaults);
 		// show templates
-		$form->addElement('html','<div id="frmModel" style="display:block; height:600px;width:100px; position:absolute; top:135px; left:1%;"></div>');
+		$form->addElement('html','<div id="frmModel" style="display:block; height:950px;width:20%; position:absolute; top:135px; left:1px;"></div>');
 		
 			
 		$form->display();