+++ /dev/null
-/*\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2009 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
- * This class is a menu block that behaves like a panel. It's a mix of the\r
- * FCKMenuBlock and FCKPanel classes.\r
- */\r
-\r
-var FCKMenuBlockPanel = function()\r
-{\r
- // Call the "base" constructor.\r
- FCKMenuBlock.call( this ) ;\r
-}\r
-\r
-FCKMenuBlockPanel.prototype = new FCKMenuBlock() ;\r
-\r
-\r
-// Override the create method.\r
-FCKMenuBlockPanel.prototype.Create = function()\r
-{\r
- var oPanel = this.Panel = ( this.Parent && this.Parent.Panel ? this.Parent.Panel.CreateChildPanel() : new FCKPanel() ) ;\r
- oPanel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ;\r
-\r
- // Call the "base" implementation.\r
- FCKMenuBlock.prototype.Create.call( this, oPanel.MainNode ) ;\r
-}\r
-\r
-FCKMenuBlockPanel.prototype.Show = function( x, y, relElement )\r
-{\r
- if ( !this.Panel.CheckIsOpened() )\r
- this.Panel.Show( x, y, relElement ) ;\r
-}\r
-\r
-FCKMenuBlockPanel.prototype.Hide = function()\r
-{\r
- if ( this.Panel.CheckIsOpened() )\r
- this.Panel.Hide() ;\r
-}\r