| @@ -195,8 +195,10 @@ | ||
| 195 | 195 | * |
| 196 | 196 | * @access public |
| 197 | 197 | */ |
| 198 | 198 | public function renderChartPages() { |
| 199 | + define ( 'IFRAME_REQUEST', 1 ); | |
| 200 | + | |
| 199 | 201 | // check chart, if chart not exists, will create new one and redirects to the same page with proper chart id |
| 200 | 202 | $chart_id = filter_input( INPUT_GET, 'chart', FILTER_VALIDATE_INT ); |
| 201 | 203 | if ( !$chart_id || !( $chart = get_post( $chart_id ) ) || $chart->post_type != Visualizer_Plugin::CPT_VISUALIZER ) { |
| 202 | 204 | $default_type = 'line'; |