PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 2.1.4
Visualizer – Tables & Charts Manager with Built-in AI Generator v2.1.4
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/media/view.js +3 -26 3.0.82.1.4 View file →
@@ -1,9 +1,9 @@
1 1 /*jshint scripturl:true*/
2 2 /* global google */
3 3 /* global visualizer */
4 4 /* global showNotice */
5 -(function($, wpm, visualizer) {
5 +(function($, wpm) {
6 6 var libraryWidth, libraryHeight, wpmv, wpmV, wpmvv, wpmvvl, wpmvvb, l10n;
7 7
8 8 wpmv = wpm.view;
9 9 wpmV = wpm.View;
@@ -58,20 +58,9 @@
58 58 settings.width = self.options.width;
59 59 settings.height = self.options.height;
60 60
61 61 table = new gv.DataTable({cols: series});
62 -
63 - switch (type) {
64 - case "gauge":
65 - case "table":
66 - case "timeline":
67 - chart = type.charAt(0).toUpperCase() + type.slice(1);
68 - break;
69 - default:
70 - chart = type.charAt(0).toUpperCase() + type.slice(1) + 'Chart';
71 - break;
72 - }
73 -
62 + chart = type === 'gauge' ? 'Gauge' : type.charAt(0).toUpperCase() + type.slice(1) + 'Chart';
74 63 chart = new gv[chart](self.el);
75 64
76 65 switch (type) {
77 66 case 'pie':
@@ -268,20 +257,8 @@
268 257 paginationView.render();
269 258 }
270 259
271 260 self.renderCollection();
272 - $('.visualizer-library-chart').css('position', 'relative')
273 - .append($(
274 - // jshint ignore:start
275 - '<div class="visualizer-chart-bg"></div>'
276 - + '<div class="visualizer-chart-insert-bg">'
277 - + '<button class="button button-primary visualizer-library-chart-insert">' + visualizer.i10n.insert + '</button>'
278 - + '</div>'
279 - // jshint ignore:end
280 - ))
281 - .on('mouseover', function(){
282 - $(this).addClass('hover');
283 - });
284 261 content.unlock();
285 262 }
286 263 }
287 264 });
@@ -475,9 +452,9 @@
475 452 onPageChange: function(e) {
476 453 this.controller.trigger('visualizer:library:page', $(e.target).data('page'));
477 454 }
478 455 });
479 -})(jQuery, wp.media, visualizer);
456 +})(jQuery, wp.media);
480 457
481 458 (function($) {
482 459 $.fn.lock = function() {
483 460 $(this).each(function() {