diff options
author | Stephane V <stephane@vergeylen.eu> | 2014-07-15 22:33:30 +0200 |
---|---|---|
committer | Stephane V <stephane@vergeylen.eu> | 2014-07-15 22:33:30 +0200 |
commit | 934229d1fb839190f64f56f27e4849a46725a7a6 (patch) | |
tree | 2dda9078edc7cdff737204bcaa795f98f41b0614 /apps/files_external/js | |
parent | 10b59f101f324dc1379d48b6a7d3daeb48de7e08 (diff) | |
download | nextcloud-server-934229d1fb839190f64f56f27e4849a46725a7a6.tar.gz nextcloud-server-934229d1fb839190f64f56f27e4849a46725a7a6.zip |
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.)
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/settings.js | 12 |
1 files changed, 6 insertions, 6 deletions
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('<input type="password"' + class_string + ' data-parameter="'+parameter+'" placeholder="'+placeholder.substring(1)+'" />'); + var class_string = is_optional ? ' optional' : ''; + td.append('<input type="password" class="added' + class_string + '" data-parameter="'+parameter+'" placeholder="'+placeholder.substring(1)+'" />'); } else if (placeholder.indexOf('!') === 0) { - td.append('<label><input type="checkbox" data-parameter="'+parameter+'" />'+placeholder.substring(1)+'</label>'); + td.append('<label><input type="checkbox" class="added" data-parameter="'+parameter+'" />'+placeholder.substring(1)+'</label>'); } else if (placeholder.indexOf('#') === 0) { - td.append('<input type="hidden" data-parameter="'+parameter+'" />'); + td.append('<input type="hidden" class="added" data-parameter="'+parameter+'" />'); } else { - var class_string = is_optional ? ' class="optional"' : ''; - td.append('<input type="text"' + class_string + ' data-parameter="'+parameter+'" placeholder="'+placeholder+'" />'); + var class_string = is_optional ? ' optional' : ''; + td.append('<input type="text" class="added' + class_string + '" data-parameter="'+parameter+'" placeholder="'+placeholder+'" />'); } }); if (parameters['custom'] && $('#externalStorage tbody tr.'+backendClass.replace(/\\/g, '\\\\')).length == 1) { |