mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
JS, add cssClass to stdDialogInform so we can better target our new forms
This commit is contained in:
parent
9efc29f2dc
commit
b2aa021eb6
@ -343,7 +343,7 @@ function initFormAdvancedUI() {
|
||||
/**
|
||||
* standard dialog when information is required, wrapper around BootstrapDialog
|
||||
*/
|
||||
function stdDialogInform(title, message, close, callback, type) {
|
||||
function stdDialogInform(title, message, close, callback, type, cssClass) {
|
||||
var types = {
|
||||
"danger": BootstrapDialog.TYPE_DANGER,
|
||||
"default": BootstrapDialog.TYPE_DEFAULT,
|
||||
@ -355,9 +355,13 @@ function stdDialogInform(title, message, close, callback, type) {
|
||||
if (!(type in types)) {
|
||||
type = 'info';
|
||||
}
|
||||
if (cssClass == undefined) {
|
||||
cssClass = '';
|
||||
}
|
||||
BootstrapDialog.show({
|
||||
title: title,
|
||||
message: message,
|
||||
cssClass: cssClass,
|
||||
type: types[type],
|
||||
buttons: [{
|
||||
label: close,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user