disabled Title (header) in open

This commit is contained in:
Daniel Maya 2020-11-30 12:48:25 +01:00
parent 863b5f3dc8
commit 76ce47fea1
1 changed files with 15 additions and 12 deletions

View File

@ -463,19 +463,15 @@ if (enterprise_installed()) {
$row++; $row++;
} }
// Title Header // Title Header.
if (enterprise_installed()) { $table_styles->data[$row][0] = __('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);
$table_styles->data[$row][1] = html_print_input_text('custom_title_header', $config['custom_title_header'], '', 50, 40, true); $row++;
$row++;
}
// Subtitle Header // Subtitle Header.
if (enterprise_installed()) { $table_styles->data[$row][0] = __('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);
$table_styles->data[$row][1] = html_print_input_text('custom_subtitle_header', $config['custom_subtitle_header'], '', 50, 40, true); $row++;
$row++;
}
// login title1 // login title1
if (enterprise_installed()) { if (enterprise_installed()) {
@ -1624,6 +1620,13 @@ var added_config1 = {
$(document).ready (function () { $(document).ready (function () {
var enterprise = '<?php echo enterprise_installed(); ?>';
if (enterprise === '') {
$('#text-custom_title_header').prop( "disabled", true );
$('#text-custom_subtitle_header').prop( "disabled", true );
}
// Show the cache expiration conf or not. // Show the cache expiration conf or not.
$("input[name=legacy_vc]").change(function (e) { $("input[name=legacy_vc]").change(function (e) {
if ($(this).prop("checked") === true) { if ($(this).prop("checked") === true) {