diff --git a/settings/css/settings.css b/settings/css/settings.css index bec8534aa4..906712a56b 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -166,9 +166,14 @@ span.securitywarning, span.connectionwarning { color:#C33; font-weight:bold; } -table.shareAPI td { padding-bottom: 0.8em; } -table.shareAPI input#shareapiExpireAfterNDays {width: 25px;} -table.shareAPI .indent { padding-left: 2em; } +#shareAPI p { padding-bottom: 0.8em; } +#shareAPI input#shareapiExpireAfterNDays {width: 25px;} +#shareAPI .indent { + padding-left: 28px; +} +#shareAPI .double-indent { + padding-left: 56px; +} #mail_settings p label:first-child { display: inline-block; diff --git a/settings/js/admin.js b/settings/js/admin.js index bc95c6a3dc..7036f6dbf2 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -60,7 +60,7 @@ $(document).ready(function(){ }); $('#shareAPIEnabled').change(function() { - $('.shareAPI td:not(#enable)').toggle(); + $('#shareAPI p:not(#enable)').toggleClass('hidden', !this.checked); }); $('#shareAPI input').change(function() { @@ -82,6 +82,7 @@ $(document).ready(function(){ $('#allowLinks').change(function() { $("#publicLinkSettings").toggleClass('hidden', !this.checked); + $('#setDefaultExpireDate').toggleClass('hidden', !(this.checked && $('#shareapiDefaultExpireDate')[0].checked)); }); $('#security').change(function(){ diff --git a/settings/templates/admin.php b/settings/templates/admin.php index e1348916b6..1d75624d8c 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -232,20 +232,18 @@ if (!$_['internetconnectionworking']) {

t('Sharing'));?>

- - - - - - - - - - - - - - - - - - - -
- /> -
-
> - /> -
-
id="publicLinkSettings"> +

+ /> +
+

+

+ /> +
+

+ +

/>
@@ -256,46 +254,38 @@ if (!$_['internetconnectionworking']) { />
-

> + +

+

t( 'Expire after ' )); ?> ' /> t( 'days' )); ?> /> + value="1" />
-

- -
-
> - /> -
-
> - /> -
-
> - /> -
-
> - /> -
-
+

+

+ /> +
+

+

+ /> +
+

+

+ /> +
+

+

+ /> +
+

+

+