From 76ce47fea1a54810677b2bad568c4c52803883a4 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 30 Nov 2020 12:48:25 +0100 Subject: [PATCH] disabled Title (header) in open --- .../godmode/setup/setup_visuals.php | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index 8c07381452..e801301e2d 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -463,19 +463,15 @@ if (enterprise_installed()) { $row++; } -// Title Header -if (enterprise_installed()) { - $table_styles->data[$row][0] = __('Title (header)'); - $table_styles->data[$row][1] = html_print_input_text('custom_title_header', $config['custom_title_header'], '', 50, 40, true); - $row++; -} +// Title Header. +$table_styles->data[$row][0] = __('Title (header)'); +$table_styles->data[$row][1] = html_print_input_text('custom_title_header', $config['custom_title_header'], '', 50, 40, true); +$row++; -// Subtitle Header -if (enterprise_installed()) { - $table_styles->data[$row][0] = __('Subtitle (header)'); - $table_styles->data[$row][1] = html_print_input_text('custom_subtitle_header', $config['custom_subtitle_header'], '', 50, 40, true); - $row++; -} +// Subtitle Header. +$table_styles->data[$row][0] = __('Subtitle (header)'); +$table_styles->data[$row][1] = html_print_input_text('custom_subtitle_header', $config['custom_subtitle_header'], '', 50, 40, true); +$row++; // login title1 if (enterprise_installed()) { @@ -1624,6 +1620,13 @@ var added_config1 = { $(document).ready (function () { + var enterprise = ''; + + if (enterprise === '') { + $('#text-custom_title_header').prop( "disabled", true ); + $('#text-custom_subtitle_header').prop( "disabled", true ); + } + // Show the cache expiration conf or not. $("input[name=legacy_vc]").change(function (e) { if ($(this).prop("checked") === true) {