diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-18 20:03:02 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-21 11:30:02 +0100 |
commit | 16181c54639212e82c3841ac69cfcce5a44af2ab (patch) | |
tree | ca24895aef6681c89a628baacbab159c6dc54c85 /settings | |
parent | e87933bc3d30df6c424edcdc945d1bc012f982bf (diff) | |
download | nextcloud-server-16181c54639212e82c3841ac69cfcce5a44af2ab.tar.gz nextcloud-server-16181c54639212e82c3841ac69cfcce5a44af2ab.zip |
Ask for password when scope is changed
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/federationsettingsview.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js index 9b38664d2f8..7a629fc2ab6 100644 --- a/settings/js/federationsettingsview.js +++ b/settings/js/federationsettingsview.js @@ -127,6 +127,14 @@ }, _onScopeChanged: function(field, scope) { + var $dialog = $('.oc-dialog:visible'); + if (OC.PasswordConfirmation.requiresPasswordConfirmation()) { + if($dialog.length === 0) { + OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this._onScopeChanged, this, field, scope)); + } + return; + } + this._config.set(field + 'Scope', scope); $('#' + field).parent().find('span > input').val(scope); |