From 7d1bf4119a1b791f6c8a3de0b9b446c888beb0f5 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 22 Jul 2018 20:12:42 +0300 Subject: [PATCH] show "close" button in beautifier dialog fixes #436 --- edit/beautify.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/edit/beautify.js b/edit/beautify.js index 4ce34aef..d3918a6a 100644 --- a/edit/beautify.js +++ b/edit/beautify.js @@ -35,10 +35,15 @@ function beautify(event) { ` + t('styleBeautifyIndentConditional') + '' + '' + - '
'); + `
+ + +
`); $('#help-popup').className = 'wide'; + $('#help-popup button[role="close"]').onclick = showHelp.close; + const undoButton = $('#help-popup button[role="undo"]'); undoButton.textContent = t(scope.length === 1 ? 'undo' : 'undoGlobal'); undoButton.addEventListener('click', () => {