Changeset 1111

Show
Ignore:
Timestamp:
2007-11-24 13:28:36 (2 years ago)
Author:
fredck
Message:

Fixed #1559 : Added a check to avoid having more than one panel opened at the same time.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckpanel.js

    r1091 r1111  
    164164        else 
    165165        { 
     166                // Be sure we'll not have more than one Panel opened at the same time. 
     167                if ( FCKPanel._OpenedPanel ) 
     168                        FCKPanel._OpenedPanel.Hide() ; 
     169 
    166170                // Do not fire OnBlur while the panel is opened. 
    167171                if ( typeof( FCK.ToolbarSet.CurrentInstance.FocusManager ) != 'undefined' ) 
     
    252256                // Move the focus to the IFRAME so we catch the "onblur". 
    253257                this._IFrame.contentWindow.focus() ; 
     258 
     259                FCKPanel._OpenedPanel = this ; 
    254260        } 
    255261