Ver código fonte

[svn r22326] FS#2867 - The online editor: Integration of the ImageManager with the editor's dialog system - corrections.

Ivan Tcholakov 15 anos atrás
pai
commit
266848e832

+ 4 - 2
main/inc/lib/fckeditor/editor/plugins/ImageManager/assets/images.js

@@ -27,7 +27,8 @@
 	//update the dir list in the parent window.
 	function updateDir(newDir)
 	{
-		var selection = window.top.document.getElementById('dirPath');
+		//var selection = window.top.document.getElementById('dirPath');
+		var selection = window.parent.document.getElementById('dirPath');
 		if(selection)
 		{
 			for(var i = 0; i < selection.length; i++)
@@ -60,7 +61,8 @@
 
 	function showMessage(newMessage) 
 	{
-		var topDoc = window.top.document;
+		//var topDoc = window.top.document;
+		var topDoc = window.parent.document;
 
 		var message = topDoc.getElementById('message');
 		var messages = topDoc.getElementById('messages');

+ 4 - 2
main/inc/lib/fckeditor/editor/plugins/ImageManager/images.php

@@ -136,7 +136,8 @@ function drawErrorBase(&$manager)
 
 	function hideMessage()
 	{
-		var topDoc = window.top.document;
+		//var topDoc = window.top.document;
+		var topDoc = window.parent.document;
 		var messages = topDoc.getElementById('messages');
 		if(messages)
 			messages.style.display = "none";
@@ -145,7 +146,8 @@ function drawErrorBase(&$manager)
 	init = function()
 	{
 		hideMessage();
-		var topDoc = window.top.document;
+		//var topDoc = window.top.document;
+		var topDoc = window.parent.document;
 
 <?php 
 	//we need to refesh the drop directory list