Skip to content

Commit b560a74

Browse files
hide alternate simple editor checkbox when a simple editor is active
1 parent c3b7ad4 commit b560a74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/simple-editor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
button.val( button.attr( 'data-t-editor' ) );
2828
button.html( button.attr( 'data-t-editor' ) );
2929
button.attr( 'data-current', 'editor' );
30+
$('p.simple-editor-type').hide();
3031
$( '.viz-text-editor' ).css("z-index", "9999").show();
3132
$( '#canvas' ).css("z-index", "-100").hide();
3233
$('.viz-simple-editor').css("z-index", "9999").show();
@@ -35,6 +36,7 @@
3536
button.html( button.attr( 'data-t-chart' ) );
3637
button.attr( 'data-current', 'chart' );
3738
$( '.viz-text-editor' ).hide();
39+
$('p.simple-editor-type').show();
3840
$( '#canvas' ).css("z-index", "1").show();
3941
$('.viz-simple-editor').hide();
4042
}
@@ -70,6 +72,7 @@
7072
$( '.viz-table-editor' ).css("z-index", "9999").show();
7173
$('body').trigger('visualizer:db:editor:table:redraw', {});
7274
$( '#canvas' ).css("z-index", "-100").hide();
75+
$('p.simple-editor-type').hide();
7376
$('.viz-simple-editor').css("z-index", "9999").show();
7477
}else{
7578
button.val( button.attr( 'data-t-chart' ) );
@@ -78,6 +81,7 @@
7881
$( '.viz-table-editor' ).hide();
7982
$( '#canvas' ).css("z-index", "1").show();
8083
$('.viz-simple-editor').hide();
84+
$('p.simple-editor-type').show();
8185
}
8286
}
8387

0 commit comments

Comments
 (0)