[svn r21980] FS#2867 - The online editor: Adding temporarily try-catch blocks inside "Ok" and "Cancel" dialog's event-functions.

skala
Ivan Tcholakov 16 years ago
parent eb06a9eb51
commit 5fd8b178e7
  1. 17
      main/inc/lib/fckeditor/editor/fckdialog.html

@ -718,7 +718,13 @@ var onReadyRegister = function()
window.Ok = function() window.Ok = function()
{ {
Selection.EnsureSelection() ; // Try-catch block added temporarily by Ivan Tcholakov, July 11, 2009.
try
{
Selection.EnsureSelection() ;
}
catch ( ex ) { }
//
var frmMain = window.frames["frmMain"] ; var frmMain = window.frames["frmMain"] ;
@ -730,7 +736,14 @@ var onReadyRegister = function()
window.Cancel = function( dontFireChange ) window.Cancel = function( dontFireChange )
{ {
Selection.EnsureSelection() ; // Try-catch block added temporarily by Ivan Tcholakov, July 11, 2009.
try
{
Selection.EnsureSelection() ;
}
catch ( ex ) { }
//
return CloseDialog( dontFireChange ) ; return CloseDialog( dontFireChange ) ;
} ; } ;

Loading…
Cancel
Save