From 28d045d7fad1333d12965570744a587e3ce7babe Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 22 Feb 2016 13:35:44 -0500 Subject: [PATCH] update to new confirm pattern --- dashboard-ui/scripts/userprofilespage.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/userprofilespage.js b/dashboard-ui/scripts/userprofilespage.js index bb7121a16b..7869a86484 100644 --- a/dashboard-ui/scripts/userprofilespage.js +++ b/dashboard-ui/scripts/userprofilespage.js @@ -4,16 +4,18 @@ var msg = Globalize.translate('DeleteUserConfirmation'); - Dashboard.confirm(msg, Globalize.translate('DeleteUser'), function (result) { + require(['confirm'], function (confirm) { + + confirm(msg, Globalize.translate('DeleteUser')).then(function () { - if (result) { Dashboard.showLoadingMsg(); ApiClient.deleteUser(id).then(function () { loadData(page); }); - } + }); + }); }