FCKeditor 2.6.6
[freeside.git] / httemplate / elements / fckeditor / editor / filemanager / browser / default / frmactualfolder.html
index 90653d6..dc1f517 100644 (file)
@@ -1,7 +1,7 @@
 <!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
@@ -44,8 +72,8 @@ window.onload = function()
 \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
@@ -55,7 +83,7 @@ window.onload = function()
                                                                <td>&nbsp;</td>\r
                                                                <td id="tdName" width="100%" nowrap class="ActualFolder">/</td>\r
                                                                <td>&nbsp;</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>&nbsp;</td>\r
                                                        </tr>\r
                                                </table>\r