Skip to content

Commit 88efa68

Browse files
authored
Merge pull request algorithm-visualizer#187 from gautamkrishnar/patch-1
Updated setup_top_menu.js
2 parents 219e343 + 0e582a5 commit 88efa68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/dom/setup/setup_top_menu.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = () => {
2828
// control
2929

3030
const $btnRun = $('#btn_run');
31+
const $btnRunText=ap=$('#btn_run>span');
3132
const $btnTrace = $('#btn_trace');
3233
const $btnPause = $('#btn_pause');
3334
const $btnPrev = $('#btn_prev');
@@ -47,6 +48,9 @@ module.exports = () => {
4748
Toast.showErrorToast(err);
4849
TopMenu.resetTopMenuButtons();
4950
}
51+
else {
52+
$btnRunText.html("Rerun");
53+
}
5054
});
5155

5256
$btnPause.click(() => {

0 commit comments

Comments
 (0)