Changeset 1567

Show
Ignore:
Timestamp:
2008-02-20 09:35:32 (7 months ago)
Author:
martinkou
Message:

Fixed #1879 : Restored the old Popup* CSS class names to avoid breaking existing plugins and dialogs.

Location:
FCKeditor/trunk/editor
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/fckdialog.html

    r1565 r1567  
    120120                                height -= $( 'TitleArea' ).offsetHeight ; 
    121121                                height -= $( 'TabsRow' ).offsetHeight ; 
    122                                 height -= $( 'DialogButtons' ).offsetHeight ; 
     122                                height -= $( 'PopupButtons' ).offsetHeight ; 
    123123 
    124124                                frmMain.style.height = Math.max( height, 0 ) + 'px' ; 
     
    341341 
    342342                        var target = evt.srcElement || evt.target ; 
    343                         if ( target.id == 'closeButton' || target.className == 'DialogTab' || target.className == 'DialogTabSelected' ) 
     343                        if ( target.id == 'closeButton' || target.className == 'PopupTab' || target.className == 'PopupTabSelected' ) 
    344344                                return ; 
    345345 
     
    422422                { 
    423423                        if ( sCode == tabCode ) 
    424                                 $( oTabs[sCode] ).className = 'DialogTabSelected' ; 
     424                                $( oTabs[sCode] ).className = 'PopupTabSelected' ; 
    425425                        else 
    426                                 $( oTabs[sCode] ).className = 'DialogTab' ; 
    427                 } 
    428  
    429                 if ( typeof( window.frames["frmMain"].OnDialogTabChange ) == 'function' ) 
    430                         window.frames["frmMain"].OnDialogTabChange( tabCode ) ; 
     426                                $( oTabs[sCode] ).className = 'PopupTab' ; 
     427                } 
     428 
     429                if ( typeof( window.frames["frmMain"].OnPopupTabChange ) == 'function' ) 
     430                        window.frames["frmMain"].OnPopupTabChange( tabCode ) ; 
    431431        } 
    432432 
     
    447447 
    448448                var oDiv = document.createElement( 'DIV' ) ; 
    449                 oDiv.className = 'DialogTab' ; 
     449                oDiv.className = 'PopupTab' ; 
    450450                oDiv.innerHTML = tabText ; 
    451451                oDiv.TabCode = tabCode ; 
     
    463463                { 
    464464                        var eTitleArea = $( 'TitleArea' ) ; 
    465                         eTitleArea.className = 'DialogTitle' ; 
    466  
    467                         oDiv.className = 'DialogTabSelected' ; 
     465                        eTitleArea.className = 'PopupTitle' ; 
     466 
     467                        oDiv.className = 'PopupTabSelected' ; 
    468468                        eTabsRow.style.display = '' ; 
    469469 
     
    484484                oTab.style.display = isVisible ? '' : 'none' ; 
    485485 
    486                 if ( ! isVisible && oTab.className == 'DialogTabSelected' ) 
     486                if ( ! isVisible && oTab.className == 'PopupTabSelected' ) 
    487487                { 
    488488                        for ( var sCode in oTabs ) 
     
    729729                </script> 
    730730        </head> 
    731         <body onload="Init();" class="DialogBody"> 
     731        <body onload="Init();" class="PopupBody"> 
    732732                <div class="contents" id="contents"> 
    733733                        <div id="header"> 
    734                                 <div id="TitleArea" class="DialogTitle DialogTitleBorder"> 
     734                                <div id="TitleArea" class="PopupTitle PopupTitleBorder"> 
    735735                                        <script type="text/javascript"> 
    736736document.write( Args().Title ) ; 
     
    738738                                        <div id="closeButton" onclick="Cancel();"></div> 
    739739                                </div> 
    740                                 <div id="TabsRow" class="DialogTabArea" style="display: none"> 
     740                                <div id="TabsRow" class="PopupTabArea" style="display: none"> 
    741741                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
    742742                                                <tr id="Tabs"> 
    743                                                         <td class="DialogTabEmptyArea">&nbsp;</td> 
    744                                                         <td class="DialogTabEmptyArea" width="100%">&nbsp;</td> 
     743                                                        <td class="PopupTabEmptyArea">&nbsp;</td> 
     744                                                        <td class="PopupTabEmptyArea" width="100%">&nbsp;</td> 
    745745                                                </tr> 
    746746                                        </table> 
     
    748748                        </div> 
    749749                        <div id="innerContents"></div> 
    750                         <div id="DialogButtons" class="DialogButtons"> 
     750                        <div id="PopupButtons" class="PopupButtons"> 
    751751                                <table border="0" cellpadding="0" cellspacing="0"> 
    752752                                        <tr> 
  • FCKeditor/trunk/editor/skins/default/fck_dialog.css

    r1565 r1567  
    4545} 
    4646 
    47 .DialogBody 
     47.PopupBody 
    4848{ 
    4949        height: 100%; 
     
    5959} 
    6060 
    61 .DialogTitle 
     61.PopupTitle 
    6262{ 
    6363        font-weight: bold; 
     
    6868} 
    6969 
    70 .DialogButtons 
     70.PopupButtons 
    7171{ 
    7272        position: absolute; 
     
    101101} 
    102102 
    103 .DialogTitleBorder 
     103.PopupTitleBorder 
    104104{ 
    105105        border-bottom: #d5d59d 1px solid; 
    106106} 
    107107 
    108 .DialogTabArea 
     108.PopupTabArea 
    109109{ 
    110110        color: #737357; 
     
    112112} 
    113113 
    114 .DialogTabEmptyArea 
     114.PopupTabEmptyArea 
    115115{ 
    116116        padding-left: 10px; 
     
    118118} 
    119119 
    120 .DialogTab, .DialogTabSelected 
     120.PopupTab, .PopupTabSelected 
    121121{ 
    122122        border-right: #d5d59d 1px solid; 
     
    127127} 
    128128 
    129 .DialogTab 
     129.PopupTab 
    130130{ 
    131131        margin-top: 1px; 
     
    135135} 
    136136 
    137 .DialogTabSelected 
     137.PopupTabSelected 
    138138{ 
    139139        font-weight: bold; 
     
    144144} 
    145145 
    146 .DialogSelectionBox 
     146.PopupSelectionBox 
    147147{ 
    148148        border: #ff9933 1px solid !important; 
  • FCKeditor/trunk/editor/skins/office2003/fck_dialog.css

    r1565 r1567  
    4545} 
    4646 
    47 .DialogBody 
     47.PopupBody 
    4848{ 
    4949        height: 100%; 
     
    5959} 
    6060 
    61 .DialogTitle 
     61.PopupTitle 
    6262{ 
    6363        font-weight: bold; 
     
    6868} 
    6969 
    70 .DialogButtons 
     70.PopupButtons 
    7171{ 
    7272        position: absolute; 
     
    101101} 
    102102 
    103 .DialogTitleBorder 
     103.PopupTitleBorder 
    104104{ 
    105105        border-bottom: #d5d59d 1px solid; 
    106106} 
    107107 
    108 .DialogTabArea 
     108.PopupTabArea 
    109109{ 
    110110        color: #0e3460; 
     
    112112} 
    113113 
    114 .DialogTabEmptyArea 
     114.PopupTabEmptyArea 
    115115{ 
    116116        padding-left: 10px ; 
     
    118118} 
    119119 
    120 .DialogTab, .DialogTabSelected 
     120.PopupTab, .PopupTabSelected 
    121121{ 
    122122        border-right: #466ca6 1px solid; 
     
    127127} 
    128128 
    129 .DialogTab 
     129.PopupTab 
    130130{ 
    131131        margin-top: 1px; 
     
    135135} 
    136136 
    137 .DialogTabSelected 
     137.PopupTabSelected 
    138138{ 
    139139        font-weight: bold; 
     
    144144} 
    145145 
    146 .DialogSelectionBox 
     146.PopupSelectionBox 
    147147{ 
    148148        border: #1e90ff 1px solid !important; 
  • FCKeditor/trunk/editor/skins/silver/fck_dialog.css

    r1565 r1567  
    4545} 
    4646 
    47 .DialogBody 
     47.PopupBody 
    4848{ 
    4949        height: 100%; 
     
    5959} 
    6060 
    61 .DialogTitle 
     61.PopupTitle 
    6262{ 
    6363        font-weight: bold; 
     
    6868} 
    6969 
    70 .DialogButtons 
     70.PopupButtons 
    7171{ 
    7272        position: absolute; 
     
    101101} 
    102102 
    103 .DialogTitleBorder 
     103.PopupTitleBorder 
    104104{ 
    105105        border-bottom: #cec6b5 1px solid; 
    106106} 
    107107 
    108 .DialogTabArea 
     108.PopupTabArea 
    109109{ 
    110110        color: #504845; 
     
    112112} 
    113113 
    114 .DialogTabEmptyArea 
     114.PopupTabEmptyArea 
    115115{ 
    116116        padding-left: 10px ; 
     
    118118} 
    119119 
    120 .DialogTab, .DialogTabSelected 
     120.PopupTab, .PopupTabSelected 
    121121{ 
    122122        border-right: #cec6b5 1px solid; 
     
    127127} 
    128128 
    129 .DialogTab 
     129.PopupTab 
    130130{ 
    131131        margin-top: 1px; 
     
    135135} 
    136136 
    137 .DialogTabSelected 
     137.PopupTabSelected 
    138138{ 
    139139        font-weight:bold; 
     
    144144} 
    145145 
    146 .DialogSelectionBox 
     146.PopupSelectionBox 
    147147{ 
    148148        border: #a9a9a9 1px solid !important;