From b5348a397a7a4dffb538f58a9dacdff82a0cfe98 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 8 Aug 2017 07:29:33 +0200 Subject: [PATCH] ui: tweak previous; just allow use of any type --- src/opnsense/www/js/opnsense_ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/opnsense/www/js/opnsense_ui.js b/src/opnsense/www/js/opnsense_ui.js index e4fbb2fdf..0007bf737 100644 --- a/src/opnsense/www/js/opnsense_ui.js +++ b/src/opnsense/www/js/opnsense_ui.js @@ -306,9 +306,11 @@ function stdDialogInform(title, message, close, callback, type) { */ function stdDialogConfirm(title, message, accept, decline, callback, type) { var types = { - // only types that make sense for confirmation "danger": BootstrapDialog.TYPE_DANGER, "default": BootstrapDialog.TYPE_DEFAULT, + "info": BootstrapDialog.TYPE_INFO, + "primary": BootstrapDialog.TYPE_PRIMARY, + "success": BootstrapDialog.TYPE_SUCCESS, "warning": BootstrapDialog.TYPE_WARNING }; if (!(type in types)) {