From 934229d1fb839190f64f56f27e4849a46725a7a6 Mon Sep 17 00:00:00 2001 From: Stephane V Date: Tue, 15 Jul 2014 22:33:30 +0200 Subject: Fix #9590. Fix #9612. For external storage with lots of parameter settings (>4), wrap the content of the cell to let a full view of the parameters. The rows of the table are now always visible until the end (the trash icon is accessible). (Note : A strange 3px margin forces me to add a class on the row added by javascript, to be able to align them with the rows rendered by the server.) --- apps/files_external/css/settings.css | 14 +++++++++++++- apps/files_external/js/settings.js | 12 ++++++------ apps/files_external/templates/settings.php | 14 +++++++------- 3 files changed, 26 insertions(+), 14 deletions(-) (limited to 'apps') diff --git a/apps/files_external/css/settings.css b/apps/files_external/css/settings.css index 758c52ae852..03416826a98 100644 --- a/apps/files_external/css/settings.css +++ b/apps/files_external/css/settings.css @@ -10,7 +10,19 @@ td.remove>img { visibility:hidden; padding-top:7px; } tr:hover>td.remove>img { visibility:visible; cursor:pointer; } #addMountPoint>td { border:none; } #addMountPoint>td.applicable { visibility:hidden; } -#selectBackend { margin-left:-10px; } + +#selectBackend { + margin-left:-10px; + width : 150px; +} + +#externalStorage td.configuration, #externalStorage td.backend { + white-space : normal; +} + +#externalStorage td.configuration input.added { + margin-right : 6px; +} #externalStorage label > input[type="checkbox"] { margin-right: 3px; diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index be6860bab63..8a1bb2bec6f 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -192,15 +192,15 @@ $(document).ready(function() { placeholder = placeholder.substring(1); } if (placeholder.indexOf('*') === 0) { - var class_string = is_optional ? ' class="optional"' : ''; - td.append(''); + var class_string = is_optional ? ' optional' : ''; + td.append(''); } else if (placeholder.indexOf('!') === 0) { - td.append(''); + td.append(''); } else if (placeholder.indexOf('#') === 0) { - td.append(''); + td.append(''); } else { - var class_string = is_optional ? ' class="optional"' : ''; - td.append(''); + var class_string = is_optional ? ' optional' : ''; + td.append(''); } }); if (parameters['custom'] && $('#externalStorage tbody tr.'+backendClass.replace(/\\/g, '\\\\')).length == 1) { diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index dcf3938b894..14f8ebc8000 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -8,12 +8,11 @@ t('Folder name')); ?> t('External storage')); ?> t('Configuration')); ?> - '.$l->t('Available for').''); ?>   - + array())); ?> > @@ -25,7 +24,8 @@ + placeholder="t('Folder name')); ?>" /> + - + + - + $value): ?> @@ -150,7 +150,7 @@ action="">

t('SSL root certificates'));?>

'> - + -- cgit v1.2.3