add more parameters to confirm dialogs

pull/1/head
ansuz 2017-03-13 19:30:56 +01:00
parent f2aa531f27
commit 803e57c958
1 changed files with 7 additions and 2 deletions

View File

@ -1522,8 +1522,13 @@ define([
});
window.setTimeout(function () {
if (opt.okClass) { findOKButton().addClass(opt.okClass); }
if (opt.cancelClass) { findCancelButton().addClass(opt.cancelClass); }
var $ok = findOKButton();
var $cancel = findCancelButton();
if (opt.okClass) { $ok.addClass(opt.okClass); }
if (opt.cancelClass) { $cancel.addClass(opt.cancelClass); }
if (opt.reverseOrder) {
$ok.insertBefore($ok.prev());
}
}, 0);
};