| 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 |
} |