aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-03-17 09:10:48 +0100
committerGitHub <noreply@github.com>2017-03-17 09:10:48 +0100
commitde4365079bad2df3bdee2133576dc913ffbf1ab2 (patch)
treea522ccb952f0d37f454e8188e13b3dec3f731912 /server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js
parent6a03df65cc0c91a26150ea172a2c480e07326ea1 (diff)
downloadsonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.tar.gz
sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.zip
format code using prettier (#1774)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js22
1 files changed, 15 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js b/server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js
index 698377be307..54404543657 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/confirm-dialog.js
@@ -24,22 +24,30 @@ const DEFAULTS = {
html: '',
yesLabel: 'Yes',
noLabel: 'Cancel',
- yesHandler () {
+ yesHandler() {
// no op
},
- noHandler () {
+ noHandler() {
// no op
},
- always () {
+ always() {
// no op
}
};
-export default function (options) {
+export default function(options) {
const settings = { ...DEFAULTS, ...options };
- const dialog = $('<div><div class="modal-head"><h2>' + settings.title + '</h2></div><div class="modal-body">' +
- settings.html + '</div><div class="modal-foot"><button data-confirm="yes">' + settings.yesLabel +
- '</button> <a data-confirm="no" class="action">' + settings.noLabel + '</a></div></div>');
+ const dialog = $(
+ '<div><div class="modal-head"><h2>' +
+ settings.title +
+ '</h2></div><div class="modal-body">' +
+ settings.html +
+ '</div><div class="modal-foot"><button data-confirm="yes">' +
+ settings.yesLabel +
+ '</button> <a data-confirm="no" class="action">' +
+ settings.noLabel +
+ '</a></div></div>'
+ );
$('[data-confirm=yes]', dialog).on('click', () => {
dialog.dialog('close');