PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.7.9
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.7.9
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
← All changes | js/library.js +2 -16 3.10.43.7.9 View file →
@@ -91,22 +91,11 @@
91 91 range.select();
92 92 }
93 93 });
94 94
95 - $( '.visualizer-languages-list' ).on( 'click', '[data-lang_code]', function() {
96 - if ( $(this).find( 'i' ).hasClass( 'otgs-ico-add' ) ) {
97 - vu.create = vu.create + '&lang=' + $(this).data('lang_code') + '&parent_chart_id=' + $(this).data('chart');
98 - $('.add-new-chart').click();
99 - } else {
100 - vu.edit = vu.edit + '&lang=' + $(this).data('lang_code') + '&chart=' + $(this).data('chart');
101 - $('.visualizer-chart-edit').click();
102 - }
103 - } );
104 -
105 95 $('.add-new-chart').click(function () {
106 96 var wnd = window,
107 97 view = new vmv.Chart({action: vu.create});
108 - vu.create = vu.create.replace(/[\?&]lang=[^&]+/, '').replace(/[\?&]parent_chart_id=[^&]+/, '');
109 98
110 99 window.parent.addEventListener('message', function(event){
111 100 switch(event.data) {
112 101 case 'visualizer:mediaframe:close':
@@ -126,13 +115,10 @@
126 115 return false;
127 116 });
128 117
129 118 $('.visualizer-chart-edit').click(function () {
130 - var wnd = window;
131 - var view = new vmv.Chart( {
132 - action: vu.edit.indexOf('&chart') != -1 ? vu.edit : vu.edit + '&chart=' + $(this).attr('data-chart')
133 - } );
134 - vu.edit = vu.edit.replace(/[\?&]lang=[^&]+/, '');
119 + var wnd = window,
120 + view = new vmv.Chart({action: vu.edit + '&chart=' + $(this).attr('data-chart')});
135 121
136 122 wnd.send_to_editor = function () {
137 123 wnd.location.href = wnd.location.href.replace(/vaction/, '');
138 124 };