Changeset 1558

Show
Ignore:
Timestamp:
2008-02-19 09:14:52 (5 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.

Location:
FCKeditor/trunk
Files:
2 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 
  • FCKeditor/trunk/_whatsnew.html

    r1541 r1558  
    100100                        will no longer display wrong starting positions for the match when there are multiple and identical 
    101101                        characters preceding the character at the real starting point of the match.</li> 
     102                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1878">#1878</a>] Fixed a JavaScript error 
     103                        which occurs in the Find/Replace dialog when the user presses "Find" or "Replace" after the "No 
     104                        match found" message has appeared.</li> 
    102105        </ul> 
    103106        <p>