Changeset 1521

Show
Ignore:
Timestamp:
2008-02-15 11:30:33 (5 months ago)
Author:
martinkou
Message:

Fixed #1530 : Fixed the issue where the Find or Replace buttons in the Find and Replace dialog may remain disabled after the user have pasted text into the "Find what" field by mouse.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

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

    r1398 r1521  
    9696} 
    9797 
    98 function btnStat(frm) 
     98function btnStat() 
    9999{ 
    100100        document.getElementById('btnReplace').disabled = 
     
    102102                        document.getElementById('btnFind').disabled = 
    103103                                ( document.getElementById(idMap["FindText"]).value.length == 0 ) ; 
     104} 
     105 
     106function btnStatDelayed() 
     107{ 
     108        setTimeout( btnStat, 1 ) ; 
    104109} 
    105110 
     
    442447                                </td> 
    443448                                <td width="100%"> 
    444                                         <input id="txtFindFind" onkeyup="btnStat(this.form)" style="width: 100%" tabindex="1" 
     449                                        <input id="txtFindFind" onkeyup="btnStat()" oninput="btnStat()" onpaste="btnStatDelayed()" style="width: 100%" tabindex="1" 
    445450                                                type="text" /> 
    446451                                </td> 
     
    469474                                </td> 
    470475                                <td width="100%"> 
    471                                         <input id="txtFindReplace" onkeyup="btnStat(this.form)" style="width: 100%" tabindex="1" 
     476                                        <input id="txtFindReplace" onkeyup="btnStat()" oninput="btnStat()" onpaste="btnStatDelayed()" style="width: 100%" tabindex="1" 
    472477                                                type="text" /> 
    473478                                </td> 
  • FCKeditor/trunk/_whatsnew.html

    r1511 r1521  
    9494                        was entering on looping on some specific cases when dealing with invalid source 
    9595                        markup.</li> 
     96                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1530">#1530</a>] Pasting text into the 
     97                        "Find what" fields in the Find and Replace dialog would now activate the find and replace  
     98                        buttons.</li> 
    9699        </ul> 
    97100        <p>