aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-11 09:21:08 -0800
committerLukas Reschke <lukas@statuscode.ch>2013-01-11 09:21:08 -0800
commit1f6eb68ef91c5743b058d6d8f10a4a20ee3d6d96 (patch)
treeddde80d7dda0fba6738b2555fa6a23deedb5f02f /settings/js
parentb6e0842f4cf701fc45ea5a5a6c3e54aa976a5206 (diff)
parentffbf273c9a0a7093fc1ec7291df39db3ad288cd1 (diff)
downloadnextcloud-server-1f6eb68ef91c5743b058d6d8f10a4a20ee3d6d96.tar.gz
nextcloud-server-1f6eb68ef91c5743b058d6d8f10a4a20ee3d6d96.zip
Merge pull request #1150 from owncloud/EnableSSL-AdminMenu
Add security section to admin settings to enable the HTTPS enforcement
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/admin.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 95b7a503c27..ab218377fb3 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -30,4 +30,8 @@ $(document).ready(function(){
}
OC.AppConfig.setValue('core', $(this).attr('name'), value);
});
+
+ $('#security').change(function(){
+ $.post(OC.filePath('settings','ajax','setsecurity.php'), { enforceHTTPS: $('#enforceHTTPSEnabled').val() },function(){} );
+ });
});