File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
classes/Visualizer/Render/Page Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ protected function _toHTML() {
51
51
if ( $ this ->settings ) {
52
52
echo 'win.visualizer.charts.canvas.settings = ' , $ this ->settings , '; ' ;
53
53
}
54
- echo 'win.updateChartPreview (); ' ;
54
+ echo 'win.vizUpdateChartPreview (); ' ;
55
55
56
56
echo $ this ->updateEditorAndSettings ();
57
57
@@ -87,7 +87,7 @@ private function updateEditorAndSettings() {
87
87
88
88
$ sidebar = apply_filters ( 'visualizer_get_sidebar ' , '' , $ this ->id );
89
89
90
- return 'win.updateHTML ( ' . json_encode ( array ( 'html ' => $ editor ) ) . ', ' . json_encode ( array ( 'html ' => $ sidebar ) ) . '); ' ;
90
+ return 'win.vizUpdateHTML ( ' . json_encode ( array ( 'html ' => $ editor ) ) . ', ' . json_encode ( array ( 'html ' => $ sidebar ) ) . '); ' ;
91
91
}
92
92
93
93
}
Original file line number Diff line number Diff line change 9
9
$ ( document ) . ready ( function ( ) {
10
10
// when data is impported using csv/url, update the hidden data and the advanced settings sidebar.
11
11
// editor and sidebar are both JSON objects
12
- window . updateHTML = function ( editor , sidebar ) {
12
+ window . vizUpdateHTML = function ( editor , sidebar ) {
13
13
$ ( '.viz-simple-editor' ) . remove ( ) ;
14
14
$ ( '#content' ) . append ( editor . html ) ;
15
15
$ ( '#settings-form .viz-group' ) . remove ( ) ;
Original file line number Diff line number Diff line change 83
83
$ ( document ) . ready ( function ( ) {
84
84
85
85
// for updating the currently displayed chart (preview mode)
86
- window . updateChartPreview = function ( ) {
86
+ window . vizUpdateChartPreview = function ( ) {
87
87
var event = new CustomEvent ( 'visualizer:render:currentchart:update' , { detail : { visualizer : visualizer } } ) ;
88
88
document . body . dispatchEvent ( event ) ;
89
89
} ;
You can’t perform that action at this time.
0 commit comments