source: trunk/admin/inc/FCKeditor/editor/_source/classes/fckmenublockpanel.js@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 1.4 KB
Line 
1/*
2 * FCKeditor - The text editor for internet
3 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4 *
5 * Licensed under the terms of the GNU Lesser General Public License:
6 * http://www.opensource.org/licenses/lgpl-license.php
7 *
8 * For further information visit:
9 * http://www.fckeditor.net/
10 *
11 * "Support Open Source software. What about a donation today?"
12 *
13 * File Name: fckmenublockpanel.js
14 * This class is a menu block that behaves like a panel. It's a mix of the
15 * FCKMenuBlock and FCKPanel classes.
16 *
17 * File Authors:
18 * Frederico Caldeira Knabben (fredck@fckeditor.net)
19 */
20
21
22var FCKMenuBlockPanel = function()
23{
24 // Call the "base" constructor.
25 FCKMenuBlock.call( this ) ;
26}
27
28FCKMenuBlockPanel.prototype = new FCKMenuBlock() ;
29
30
31// Override the create method.
32FCKMenuBlockPanel.prototype.Create = function()
33{
34 var oPanel = this.Panel = ( this.Parent && this.Parent.Panel ? this.Parent.Panel.CreateChildPanel() : new FCKPanel() ) ;
35 oPanel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
36
37 // Call the "base" implementation.
38 FCKMenuBlock.prototype.Create.call( this, oPanel.MainNode ) ;
39}
40
41FCKMenuBlockPanel.prototype.Show = function( x, y, relElement )
42{
43 if ( !this.Panel.CheckIsOpened() )
44 this.Panel.Show( x, y, relElement ) ;
45}
46
47FCKMenuBlockPanel.prototype.Hide = function()
48{
49 if ( this.Panel.CheckIsOpened() )
50 this.Panel.Hide() ;
51}
Note: See TracBrowser for help on using the repository browser.