Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4782 from zaggino/issue4781
Browse files Browse the repository at this point in the history
Fixes issue 4781.
  • Loading branch information
redmunds committed Aug 16, 2013
2 parents 14accd9 + 35ee28e commit bc848b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/search/FindReplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ define(function (require, exports, module) {
var doReplaceConfirm = Strings.CMD_REPLACE +
'? <button id="replace-yes" class="btn">' + Strings.BUTTON_YES +
'</button> <button id="replace-no" class="btn">' + Strings.BUTTON_NO +
'</button> <button class="btn">' + Strings.BUTTON_STOP + '</button>';
'</button> <button id="replace-stop" class="btn">' + Strings.BUTTON_STOP + '</button>';

function replace(editor, all) {
var cm = editor._codeMirror;
Expand Down Expand Up @@ -343,6 +343,9 @@ define(function (require, exports, module) {
doReplace(match);
} else if (e.target.id === "replace-no") {
advance();
} else if (e.target.id === "replace-stop") {
// Destroy modalBar on stop
modalBar = null;
}
});
};
Expand Down

0 comments on commit bc848b6

Please sign in to comment.