Show
Ignore:
Timestamp:
2008-02-19 09:14:52 (8 months ago)
Author:
martinkou
Message:

Fixed #1878 : Fixed a JavaScript error which occurs in the Find/Replace dialog when the user presses "Find" or "Replace" after the "No match found" message has appeared.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/dialog/fck_replace.html

    r1541 r1558  
    5555// This will be the starting point of our search. 
    5656var GlobalRange = new oEditor.FCKDomRange( oEditor.FCK.EditorWindow ) ; 
    57 GlobalRange.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ; 
    58 GlobalRange.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ; 
    59 GlobalRange.Collapse( true ) ; 
     57 
     58function ResetGlobalRange() 
     59{ 
     60        GlobalRange.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ; 
     61        GlobalRange.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ; 
     62        GlobalRange.Collapse( true ) ; 
     63} 
     64ResetGlobalRange() ; 
    6065 
    6166var HighlightRange = null ; 
     
    389394                } 
    390395 
    391                 return true; 
     396                return true ; 
    392397        } 
    393398        else 
    394                 return false; 
     399        { 
     400                ResetGlobalRange() ; 
     401                return false ; 
     402        } 
    395403} 
    396404