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

Fixes issue 4781. #4782

Merged
merged 1 commit into from
Aug 16, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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