add a style-callback to confirm
parent
5d88c3a436
commit
413d9a6f0b
|
@ -1499,7 +1499,7 @@ define([
|
|||
});
|
||||
};
|
||||
|
||||
common.confirm = function (msg, cb, opt, force) {
|
||||
common.confirm = function (msg, cb, opt, force, styleCB) {
|
||||
opt = opt || {};
|
||||
cb = cb || function () {};
|
||||
if (force !== true) { msg = fixHTML(msg); }
|
||||
|
@ -1529,6 +1529,9 @@ define([
|
|||
if (opt.reverseOrder) {
|
||||
$ok.insertBefore($ok.prev());
|
||||
}
|
||||
if (typeof(styleCB) === 'function') {
|
||||
styleCB($ok.closest('.dialog'));
|
||||
}
|
||||
}, 0);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue