+++ /dev/null
-/*\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben\r
- *\r
- * == BEGIN LICENSE ==\r
- *\r
- * Licensed under the terms of any of the following licenses at your\r
- * choice:\r
- *\r
- * - GNU General Public License Version 2 or later (the "GPL")\r
- * http://www.gnu.org/licenses/gpl.html\r
- *\r
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
- * http://www.gnu.org/licenses/lgpl.html\r
- *\r
- * - Mozilla Public License Version 1.1 or later (the "MPL")\r
- * http://www.mozilla.org/MPL/MPL-1.1.html\r
- *\r
- * == END LICENSE ==\r
- *\r
- * Common objects and functions shared by all pages that compose the\r
- * File Browser dialog window.\r
- */\r
-\r
-// Automatically detect the correct document.domain (#1919).\r
-(function()\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 AddSelectOption( selectElement, optionText, optionValue )\r
-{\r
- var oOption = document.createElement("OPTION") ;\r
-\r
- oOption.text = optionText ;\r
- oOption.value = optionValue ;\r
-\r
- selectElement.options.add(oOption) ;\r
-\r
- return oOption ;\r
-}\r
-\r
-var oConnector = window.parent.oConnector ;\r
-var oIcons = window.parent.oIcons ;\r
-\r
-\r
-function StringBuilder( value )\r
-{\r
- this._Strings = new Array( value || '' ) ;\r
-}\r
-\r
-StringBuilder.prototype.Append = function( value )\r
-{\r
- if ( value )\r
- this._Strings.push( value ) ;\r
-}\r
-\r
-StringBuilder.prototype.ToString = function()\r
-{\r
- return this._Strings.join( '' ) ;\r
-}\r