PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.3
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.3
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
visualizer / js / media / model.js

model.js in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.10.3, at js/media/model.js

21 lines 495 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($, wpmm, wpmvlv) {
2 wpmm.visualizer = {};
3
4 wpmm.visualizer.Chart = Backbone.Model.extend({
5 sync: function(method, model, options) {
6 if ('delete' === method) {
7 options = options || {};
8 options.data = _.extend( options.data || {}, {
9 action: wpmvlv.actions.delete_chart,
10 chart: model.get('id'),
11 nonce: wpmvlv.nonce
12 });
13
14 return wp.media.ajax( options );
15 } else {
16 return;
17 }
18 }
19 });
20 })(jQuery, wp.media.model, wp.media.view.l10n.visualizer);
21