Ticket #3259: 3259.patch

File 3259.patch, 2.2 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/find/dialogs/find.js

     
    516516                                var findResult = this.find( pattern, matchCase, matchWord, matchCyclic );
    517517                                if ( findResult && matchReplaceAll )
    518518                                        this.replace.apply( this, Array.prototype.slice.call( arguments ) );
     519                                else
     520                                        editor.fire( 'saveSnapshot' );
     521
    519522                                return matchReplaceAll ?
    520523                                        this.replaceCounter : replaceResult || findResult;
    521524                        }
  • _source/plugins/find/dialogs/find.js

     
    652652                                                                        onClick : function()
    653653                                                                        {
    654654                                                                                var dialog = this.getDialog();
     655                                                                                editor.fire( 'saveSnapshot' );
    655656                                                                                if ( !finder.replace( dialog,
    656657                                                                                                        dialog.getValueOf( 'replace', 'txtFindReplace' ),
    657658                                                                                                        dialog.getValueOf( 'replace', 'txtReplace' ),
     
    688689                                                                                var dialog = this.getDialog();
    689690                                                                                var replaceNums;
    690691
     692                                                                                editor.fire( 'saveSnapshot' );
    691693                                                                                finder.replaceCounter = 0;
    692694                                                                                if ( ( replaceNums = finder.replace( dialog,
    693695                                                                                        dialog.getValueOf( 'replace', 'txtFindReplace' ),
  • _source/plugins/find/dialogs/find.js

     
    652652                                                                        onClick : function()
    653653                                                                        {
    654654                                                                                var dialog = this.getDialog();
     655                                                                                editor.fire( 'saveSnapshot' );
    655656                                                                                if ( !finder.replace( dialog,
    656657                                                                                                        dialog.getValueOf( 'replace', 'txtFindReplace' ),
    657658                                                                                                        dialog.getValueOf( 'replace', 'txtReplace' ),
     
    688689                                                                                var dialog = this.getDialog();
    689690                                                                                var replaceNums;
    690691
     692                                                                                editor.fire( 'saveSnapshot' );
    691693                                                                                finder.replaceCounter = 0;
    692694                                                                                if ( ( replaceNums = finder.replace( dialog,
    693695                                                                                        dialog.getValueOf( 'replace', 'txtFindReplace' ),
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy