<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
<!--\r
* FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben\r
*\r
* == BEGIN LICENSE ==\r
*\r
-->\r
<html>\r
<head>\r
+ <title>Folder path</title>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
<link href="browser.css" type="text/css" rel="stylesheet">\r
<script type="text/javascript">\r
-\r
-function OnResize()\r
+// Automatically detect the correct document.domain (#1919).\r
+(function()\r
{\r
- divName.style.width = "1px" ;\r
- divName.style.width = tdName.offsetWidth + "px" ;\r
-}\r
+ var d = document.domain ;\r
+\r
+ while ( true )\r
+ {\r
+ // Test if we can access a parent property.\r
+ try\r
+ {\r
+ var test = window.top.opener.document.domain ;\r
+ break ;\r
+ }\r
+ catch( e )\r
+ {}\r
+\r
+ // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...\r
+ d = d.replace( /.*?(?:\.|$)/, '' ) ;\r
+\r
+ if ( d.length == 0 )\r
+ break ; // It was not able to detect the domain.\r
+\r
+ try\r
+ {\r
+ document.domain = d ;\r
+ }\r
+ catch (e)\r
+ {\r
+ break ;\r
+ }\r
+ }\r
+})() ;\r
\r
function SetCurrentFolder( resourceType, folderPath )\r
{\r
\r
</script>\r
</head>\r
- <body bottomMargin="0" topMargin="0">\r
- <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">\r
+ <body>\r
+ <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0">\r
<tr>\r
<td>\r
<button style="WIDTH: 100%" type="button">\r
<td> </td>\r
<td id="tdName" width="100%" nowrap class="ActualFolder">/</td>\r
<td> </td>\r
- <td><img height="8" src="images/ButtonArrow.gif" width="12"></td>\r
+ <td><img height="8" src="images/ButtonArrow.gif" width="12" alt=""></td>\r
<td> </td>\r
</tr>\r
</table>\r