From c01f196f723dcb3dea6947c821a70d4d80563bbd Mon Sep 17 00:00:00 2001 From: Volkan Gezer Date: Thu, 29 May 2014 21:09:56 +0200 Subject: [PATCH] make reshare settings foldable --- settings/js/admin.js | 3 +++ settings/templates/admin.php | 18 ++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/settings/js/admin.js b/settings/js/admin.js index 249131464a..9353333b47 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -83,6 +83,9 @@ $(document).ready(function(){ $('#allowLinks').change(function() { $("#publicLinkSettings").toggleClass('hidden', !this.checked); }); + $('#allowResharing').change(function() { + $("#resharingSettings").toggleClass('hidden', !this.checked); + }); $('#security').change(function(){ $.post(OC.filePath('settings','ajax','setsecurity.php'), { enforceHTTPS: $('#forcessl').val() },function(){} ); diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 9b632391f8..a410447551 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -248,16 +248,14 @@ if (!$_['internetconnectionworking']) { value="1" />
t('Allow users to share items shared with them again')); ?> - - - - > - /> -
- /> -
+
> + /> +
+ /> +
+