mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
ui: tweak previous; just allow use of any type
This commit is contained in:
parent
3cbb4f554f
commit
b5348a397a
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user