Changeset 1391

Show
Ignore:
Timestamp:
2008-01-23 10:05:13 (9 months ago)
Author:
martinkou
Message:

Fixed some more JavaScript errors with FCKDialog manual test page.

Location:
FCKeditor/branches/features/floating_dialog
Files:
2 modified

Legend:

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

    r1389 r1391  
    686686                // Points the src to a non-existent location to avoid loading errors later, in case the dialog 
    687687                // haven't been completed loaded at this point. 
    688                 $( 'frmMain' ).src = FCKTools.GetVoidUrl() ; 
     688                if ( $( 'frmMain' ) ) 
     689                        $( 'frmMain' ).src = FCKTools.GetVoidUrl() ; 
    689690 
    690691                if ( !dontFireChange && !FCK.EditMode ) 
  • FCKeditor/branches/features/floating_dialog/_test/manual/fckdialog/test1.html

    r1382 r1391  
    7979                for ( var i = 0 ; i < iframes.length ; i++ ) 
    8080                { 
    81                         if ( iframes[i].src.search( 'fckdialog.html' ) != -1 ) 
     81                        if ( iframes[i].src.search( 'fckdialog.html' ) != -1 && iframes[i].contentWindow && iframes[i].contentWindow.CloseDialog ) 
    8282                                iframes[i].contentWindow.CloseDialog() ; 
    8383                }