From: Markus Goetz Date: Wed, 15 Jun 2016 13:24:01 +0000 (+0200) Subject: files_external: Keep checkbox and its label on one line #20032 #22655 X-Git-Tag: v9.1.0RC1~58^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=111bd8e57d2ccb7e894e8c3d86daaed62b6fb618;p=nextcloud-server.git files_external: Keep checkbox and its label on one line #20032 #22655 Else the checkbox and the decription end up on different lines in my Chrome on OS X --- diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 2477f513db3..d210c158ec1 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -854,7 +854,7 @@ MountConfigListView.prototype = _.extend({ this.configureAuthMechanism($tr, storageConfig.authMechanism, onCompletion); if (storageConfig.backendOptions) { - $td.children().each(function() { + $td.find('input, select').each(function() { var input = $(this); var val = storageConfig.backendOptions[input.data('parameter')]; if (val !== undefined) { @@ -1001,7 +1001,7 @@ MountConfigListView.prototype = _.extend({ newElement = $(''); } else if (placeholder.type === MountConfigListView.ParameterTypes.BOOLEAN) { var checkboxId = _.uniqueId('checkbox_'); - newElement = $(''); + newElement = $('
'); } else if (placeholder.type === MountConfigListView.ParameterTypes.HIDDEN) { newElement = $(''); } else { diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index c9cc40b0ba0..6662f637039 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -51,13 +51,17 @@ break; case DefinitionParameter::VALUE_BOOLEAN: ?> +
+ +