ui: tweak previous; just allow use of any type

This commit is contained in:
Franco Fichtner 2017-08-08 07:29:33 +02:00
parent 3cbb4f554f
commit b5348a397a

View File

@ -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)) {