PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 4.11
Smart Grid-Layout Design for Contact Form 7 v4.11
4.18.0 4.17.0 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10 4.11 4.12 4.13 4.14 All 119 releases
cf7-grid-layout / admin / js / cf7sg-plugin-update.js

cf7sg-plugin-update.js in Smart Grid-Layout Design for Contact Form 7 4.11, at admin/js/cf7sg-plugin-update.js

24 lines 870 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* script to monitor and validate plugin update */
2 (function($){
3 'use strict';
4
5 var $cf7sgPlugin = $('#cf7-grid-layout-update');
6 if($cf7sgPlugin){
7 $(document).on('wp-plugin-update-success',function(e, response){
8 if('undefined' != typeof response['slug'] && 'cf7-grid-layout'==response['slug']){
9 //check if the update requires a form update.
10 $('.updated-message.notice-success p',$cf7sgPlugin).append('<span class="cf7sg-msg">'+cf7sg.msg+'<span class="spinner"></span></span>');
11 //check form version.
12 $.post(ajaxurl,{
13 'action':'validate_cf7sg_version_update',
14 'nonce' : cf7sg.nonce
15 }, function(response){
16 $('.cf7sg-msg', $cf7sgPlugin).html(response);
17 }).fail(function(){
18 $('.cf7sg-msg', $cf7sgPlugin).html(cf7sg.error);
19 })
20 }
21 })
22 }
23 })(jQuery)
24