summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-08-22 16:01:03 +0200
committerLukas Reschke <lukas@owncloud.com>2014-08-22 16:01:03 +0200
commitdd871098c5f598326a1bc03f8b7bed0d2184e798 (patch)
tree737b281187a6c6be3e4fc3ab458cfc9ec2ba4ec8 /settings/js/admin.js
parent88c3a4a31ae09b4822cff6d6965f0c39becb5b97 (diff)
downloadnextcloud-server-dd871098c5f598326a1bc03f8b7bed0d2184e798.tar.gz
nextcloud-server-dd871098c5f598326a1bc03f8b7bed0d2184e798.zip
Redirect user after clicking on link
Use DI
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index b09704f87b7..56dc1b98716 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -48,7 +48,9 @@ $(document).ready(function(){
$.ajax({
type: 'POST',
url: OC.generateUrl('settings/ajax/setsecurity.php'),
- data: { trustedDomain: params.trustDomain}
+ data: { trustedDomain: params.trustDomain }
+ }).done(function() {
+ window.location.replace(OC.generateUrl('settings/admin'));
});
}
});