Merge branch 'ent-6628-Titulo-y-subtitulos-borrados-en-la-open' into 'develop'

Ent 6628 titulo y subtitulos borrados en la open

See merge request artica/pandorafms!3669
This commit is contained in:
Daniel Rodriguez 2020-12-17 17:06:05 +01:00
commit 30650abaf0

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()) {
@ -1638,6 +1634,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) {