Apply correct style to registration confirm modal

pull/1/head
yflory 5 years ago
parent d8348ec905
commit 846a9d3252

@ -2,9 +2,11 @@
@import (reference) "../include/colortheme-all.less"; @import (reference) "../include/colortheme-all.less";
@import (reference) "../include/alertify.less"; @import (reference) "../include/alertify.less";
@import (reference) "../include/checkmark.less"; @import (reference) "../include/checkmark.less";
@import (reference) "../include/forms.less";
&.cp-page-register { &.cp-page-register {
.infopages_main(); .infopages_main();
.forms_main();
.alertify_main(); .alertify_main();
.checkmark_main(20px); .checkmark_main(20px);

@ -647,9 +647,6 @@ define([
var $ok = $(ok).click(function (ev) { close(true, ev); }); var $ok = $(ok).click(function (ev) { close(true, ev); });
var $cancel = $(cancel).click(function (ev) { close(false, ev); }); var $cancel = $(cancel).click(function (ev) { close(false, ev); });
if (opt.cancelClass) { $cancel.addClass(opt.cancelClass); }
if (opt.okClass) { $ok.addClass(opt.okClass); }
listener = listenForKeys(function () { listener = listenForKeys(function () {
$ok.click(); $ok.click();
}, function () { }, function () {

@ -118,7 +118,7 @@ define([
/* If we're certain that we aren't using these "*Class" APIs /* If we're certain that we aren't using these "*Class" APIs
anywhere else then we can deprecate them and make this a anywhere else then we can deprecate them and make this a
custom modal in common-interface (or here). */ custom modal in common-interface (or here). */
cancelClass: 'btn.btn-primary', cancelClass: 'btn.btn-safe',
okClass: 'btn.btn-danger', okClass: 'btn.btn-danger',
reverseOrder: true, reverseOrder: true,
done: function ($dialog) { done: function ($dialog) {

Loading…
Cancel
Save