diff options
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r-- | settings/js/apps.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 451becc67a0..7c911427fa8 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -269,6 +269,11 @@ OC.Settings.Apps = OC.Settings.Apps || { }, enableApp:function(appId, active, element, groups) { + if (OC.PasswordConfirmation.requiresPasswordConfirmation()) { + OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this.enableApp, this, appId, active, element, groups)); + return; + } + var self = this; OC.Settings.Apps.hideErrorMessage(appId); groups = groups || []; @@ -395,6 +400,11 @@ OC.Settings.Apps = OC.Settings.Apps || { }, uninstallApp:function(appId, element) { + if (OC.PasswordConfirmation.requiresPasswordConfirmation()) { + OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this.uninstallApp, this, appId, element)); + return; + } + OC.Settings.Apps.hideErrorMessage(appId); element.val(t('settings','Uninstalling ....')); $.post(OC.filePath('settings','ajax','uninstallapp.php'),{appid:appId},function(result) { |