From 3adfafc98e453e515eb58dd2b108e2dacae5e9bb Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Wed, 11 Mar 2026 03:28:47 +0530 Subject: [PATCH] fix: hide 'Show Chart' reminder message when in chart view mode The info message was visible by default. Hide it via inline style and toggle visibility via JS only when entering/leaving editor mode. --- classes/Visualizer/Render/Layout.php | 4 ++-- js/simple-editor.js | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/classes/Visualizer/Render/Layout.php b/classes/Visualizer/Render/Layout.php index 0585c5024..3fbb4d2a7 100644 --- a/classes/Visualizer/Render/Layout.php +++ b/classes/Visualizer/Render/Layout.php @@ -790,7 +790,7 @@ public static function _renderTabBasic( $args ) { data-t-editor="" data-t-chart="" > -

+ @@ -799,7 +799,7 @@ public static function _renderTabBasic( $args ) { data-t-editor="" data-t-chart="" > -

+ diff --git a/js/simple-editor.js b/js/simple-editor.js index 109b486df..31094f283 100644 --- a/js/simple-editor.js +++ b/js/simple-editor.js @@ -30,6 +30,7 @@ button.html( button.attr( 'data-t-chart' ) ); button.attr( 'data-current', 'chart' ); $('p.viz-editor-selection').show(); + $('p.viz-info-msg').hide(); $('.viz-text-editor').hide(); $('.viz-simple-editor').hide(); $( '#canvas' ).css('z-index', '1').show(); @@ -40,6 +41,7 @@ button.html( button.attr( 'data-t-editor' ) ); button.attr( 'data-current', 'editor' ); $('p.viz-editor-selection').hide(); + $('p.viz-info-msg').show(); $('.viz-text-editor').css('z-index', '9999').show(); $('.viz-simple-editor').css('z-index', '9999').show(); $( '#canvas' ).css('z-index', '-100').hide(); @@ -53,6 +55,7 @@ button.html( button.attr( 'data-t-chart' ) ); button.attr( 'data-current', 'chart' ); $('p.viz-editor-selection').show(); + $('p.viz-info-msg').hide(); $('.viz-text-editor').hide(); $('.viz-simple-editor').hide(); $( '#canvas' ).css('z-index', '1').show(); @@ -74,6 +77,7 @@ button.html( button.attr( 'data-t-chart' ) ); button.attr( 'data-current', 'chart' ); $('p.viz-editor-selection').show(); + $('p.viz-info-msg').hide(); $('.viz-table-editor').hide(); $('.viz-simple-editor').hide(); $( '#canvas' ).css('z-index', '1').show(); @@ -84,6 +88,7 @@ button.html( button.attr( 'data-t-editor' ) ); button.attr( 'data-current', 'editor' ); $('p.viz-editor-selection').hide(); + $('p.viz-info-msg').show(); $( '.viz-table-editor' ).css("z-index", "9999").show(); $('.viz-simple-editor').css('z-index', '9999').show(); $('body').trigger('visualizer:db:editor:table:redraw', {}); @@ -98,6 +103,7 @@ button.html( button.attr( 'data-t-chart' ) ); button.attr( 'data-current', 'chart' ); $('p.viz-editor-selection').show(); + $('p.viz-info-msg').hide(); $('.viz-table-editor').hide(); $('.viz-simple-editor').hide(); $( '#canvas' ).css('z-index', '1').show();