diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 654c140e8..bd36edb07 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -285,7 +285,7 @@ define([ }); }; - UI.confirm = function (msg, cb, opt, force, styleCB) { + UI.confirm = function (msg, cb, opt, force) { cb = cb || function () {}; opt = opt || {}; @@ -328,8 +328,8 @@ define([ document.body.appendChild(frame); setTimeout(function () { UI.notify(); - if (typeof(styleCB) === 'function') { - styleCB($ok.closest('.dialog')); + if (typeof(opt.done) === 'function') { + opt.done($ok.closest('.dialog')); } }); }; diff --git a/www/register/main.js b/www/register/main.js index 86d0d9b14..d302a0634 100644 --- a/www/register/main.js +++ b/www/register/main.js @@ -217,9 +217,10 @@ define([ cancelClass: 'safe', okClass: 'danger', reverseOrder: true, - }, true, function ($dialog) { - $dialog.find('> div').addClass('half'); - }); + done: function ($dialog) { + $dialog.find('> div').addClass('half'); + }, + }, true); }, 150); });