Skip to content

Commit 4e32e3f

Browse files
committed
fix run button
1 parent 88efa68 commit 4e32e3f

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

css/stylesheet.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,14 @@ input[type=number]::-webkit-outer-spin-button {
591591
color: #00e676;
592592
}
593593

594+
#btn_run > .btn-text:before {
595+
content: 'Run'
596+
}
597+
598+
#btn_run.active > .btn-text:before {
599+
content: 'Rerun'
600+
}
601+
594602
#btn_pause > .btn-text:before {
595603
content: 'Pause'
596604
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h3>
3737
</div>
3838
<button id="btn_run">
3939
<i class="fa fa-play" aria-hidden="true"></i>
40-
<span class="btn-text">Run</span>
40+
<span class="btn-text"></span>
4141
</button>
4242
<button id="btn_prev">
4343
<i class="fa fa-chevron-left" aria-hidden="true"></i>

js/dom/setup/setup_top_menu.js

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

3030
const $btnRun = $('#btn_run');
31-
const $btnRunText=ap=$('#btn_run>span');
3231
const $btnTrace = $('#btn_trace');
3332
const $btnPause = $('#btn_pause');
3433
const $btnPrev = $('#btn_prev');
@@ -48,9 +47,6 @@ module.exports = () => {
4847
Toast.showErrorToast(err);
4948
TopMenu.resetTopMenuButtons();
5049
}
51-
else {
52-
$btnRunText.html("Rerun");
53-
}
5450
});
5551

5652
$btnPause.click(() => {

0 commit comments

Comments
 (0)