PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 1.6.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v1.6.0
4.0.8 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 All 149 releases
← All changes | js/preview.js +0 -13 3.0.81.6.0 View file →
@@ -1,6 +1,4 @@
1 -/* global visualizer */
2 -/* global console */
3 1 (function($, v) {
4 2 var timeout;
5 3
6 4 $(document).ready(function() {
@@ -20,17 +18,8 @@
20 18 v.render();
21 19 }, 1000);
22 20 }
23 21
24 - function validateJSON() {
25 - $('#visualizer-error-manual').remove();
26 - try{
27 - var options = JSON.parse($(this).val());
28 - }catch(error){
29 - $('<div class="visualizer-error" id="visualizer-error-manual">Invalid JSON: ' + error + '</div>').insertAfter($(this));
30 - }
31 - }
32 -
33 22 $('.control-text').change(updateChart).keyup(updateChart);
34 23 $('.control-select, .control-checkbox').change(updateChart);
35 24 $('.color-picker-hex').wpColorPicker({
36 25 change: updateChart,
@@ -35,10 +24,8 @@
35 24 $('.color-picker-hex').wpColorPicker({
36 25 change: updateChart,
37 26 clear: updateChart
38 27 });
39 - $('textarea[name="manual"]').change(validateJSON).keyup(validateJSON);
40 -
41 28 });
42 29 })(jQuery, visualizer);
43 30
44 31 (function($) {