Changeset 1214

Show
Ignore:
Timestamp:
2007-12-17 04:55:50 (9 months ago)
Author:
martinkou
Message:

Changed the throbber appearance delay to 1 second, as the previous 5-second delay seems to be unreasonably long.
Unified the background for throbber to white for all browsers.
Fixed the issue where if a floating dialog is closed when the throbber is running, a JavaScript error would happen some time later.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/floating_dialog/editor/fckdialog.html

    r1213 r1214  
    8787        RefreshContainerSize() ; 
    8888        LoadInnerDialog() ; 
    89         ShowThrobberTimer = setTimeout( ShowThrobber, 5000 ) ; 
     89        ShowThrobberTimer = setTimeout( ShowThrobber, 1000 ) ; 
    9090 
    9191        var titleElement = document.getElementById( 'TitleArea' ) ; 
     
    110110        // First of all, translate the dialog box contents. 
    111111        editor.FCKLanguageManager.TranslatePage( document ) ; 
    112         document.getElementById( 'FrameCell' ).innerHTML = '<iframe id="frmMain" src="' + args.Page + '" name="frmMain" frameborder="0" width="100%" scrolling="auto"></iframe>' ; 
     112        document.getElementById( 'FrameCell' ).innerHTML = '<iframe id="frmMain" src="' + args.Page + '" name="frmMain" frameborder="0" width="100%" scrolling="auto" style="background-color: white;"></iframe>' ; 
    113113} 
    114114 
     
    140140function InnerDialogLoaded() 
    141141{ 
     142        // If the dialog has been closed before the iframe is loaded, do nothing. 
     143        if ( !window.frameElement.parentNode ) 
     144                return ; 
     145 
    142146        HideThrobber() ; 
    143147 
     
    243247function CloseDialog( dontFireChange ) 
    244248{ 
     249        // Points the src to a non-existent location to avoid loading errors later, in case the dialog 
     250        // haven't been completed loaded at this point. 
     251        document.getElementById( 'frmMain' ).src = 'javascript: void(0);' ; 
     252 
    245253        if ( !dontFireChange && !editor.FCK.EditMode ) 
    246254        {