PluginProbe
MisterPlan – Booking Engines / trunk
MisterPlan – Booking Engines vtrunk
1.1.46 trunk 1. 1.0.10 1.0.11 1.0.13 1.0.14 1.0.15 1.0.9 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 1.1.20 1.1.21 1.1.22 All 52 releases
misterplan / lib / mrplan_admin.js

mrplan_admin.js in MisterPlan – Booking Engines trunk, at lib/mrplan_admin.js

35 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 jQuery( function($) {
3 $( document ).tooltip();
4
5 jQuery('.TMrPlanPugin_ShowElementEvnt').unbind('click').click(function(evnt){
6 evnt.preventDefault();
7 let target = jQuery(this).attr('target');
8 if(jQuery('#'+target).is(':visible')){
9 jQuery('#'+target).slideUp();
10 }else{
11 jQuery('#'+target).slideDown();
12 }
13 });
14
15 if(jQuery('#MrPlanAvisoActualizacion').length>0){
16 let version = jQuery('#MrPlanAvisoActualizacion').attr('version');
17 let version_wordpress = jQuery('#MrPlanAvisoActualizacion').attr('version_wordpress');
18 jQuery.ajax({
19 url: "http://api.wordpress.org/plugins/info/1.0/misterplan.json",
20 context: document.body
21 }).done(function(data) {
22 if(version!=data.version && data.requires <= version_wordpress){
23 jQuery('#MrPlanAvisoActualizacion').slideDown();
24 }
25 });
26 }
27
28
29 });
30
31
32 function validate(form) {
33
34 return confirm('Are you sure you want to delete this engine? This operation cannot be undone');
35 }