diff --git a/js/admin.js b/js/admin.js index 62a48c32..7a781f30 100644 --- a/js/admin.js +++ b/js/admin.js @@ -72,10 +72,6 @@ var documentsSettings = { var testserver = $(document).find('#test_wopi_url').val(); if (groups === '' || testserver === '') { - $(document).find('label[for="test_server_group_select"]').hide(); - $(document).find('label[for="test_wopi_url"]').hide(); - $(document).find('#test_wopi_url').hide(); - $(document).find('#test_wopi_apply').hide(); $('.test-server-enable').attr('checked', null); } else { OC.Settings.setupGroupsSelect($('#test_server_group_select')); @@ -94,22 +90,14 @@ var documentsSettings = { var $select = page.find('#test_server_group_select'); $select.val(''); + page.find('#test-server-section').toggleClass('hidden', !this.checked); if (this.checked) { - page.find('label[for="test_server_group_select"]').show(); - page.find('label[for="test_wopi_url"]').show(); - page.find('#test_wopi_apply').show(); - page.find('#test_wopi_url').show(); - OC.Settings.setupGroupsSelect($select, { placeholder: t('core', 'None') }); } else { - page.find('label[for="test_server_group_select"]').hide(); - page.find('label[for="test_wopi_url"]').hide(); - page.find('#test_wopi_apply').hide(); - page.find('#test_wopi_url').val(''); - page.find('#test_wopi_url').hide(); $select.select2('destroy'); + page.find('#test_wopi_url').val(''); documentsSettings.saveTestWopi('', ''); } diff --git a/templates/admin.php b/templates/admin.php index 30b381b1..efdc57b0 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -5,23 +5,24 @@ script('richdocuments', 'admin');

t('Collabora Online')) ?>

-
t('URL (and port) of the Collabora Online server that provides the editing functionality as a WOPI client.')) ?> -
+
t('URL (and port) of the Collabora Online server that provides the editing functionality as a WOPI client.')) ?> +

- -
- - +
+

+ +
- - -
- - -
+ +
+ t('URL (and port) of the Collabora Online test server.')) ?>
+ + + +