31 lines
609 B
JavaScript
31 lines
609 B
JavaScript
/*
|
|
* 2014 - 2017 MDWeb - Terms of Sale Send
|
|
*
|
|
* @author MDWeb
|
|
* @version 1.3.0
|
|
* @copyright MDWeb 2014 - 2017
|
|
* @license Commerciale
|
|
*/
|
|
|
|
$( document ).ready(function() {
|
|
$("input[type=checkbox]").click(function() {
|
|
if ($(this).is(":checked"))
|
|
{
|
|
var pdf = $(this).val();
|
|
console.log(pdf);
|
|
$.ajax({
|
|
url: "/modules/mdtossend/removePDF.php",
|
|
type:"POST",
|
|
data:'pdf='+pdf
|
|
}).done(function( arg ) {
|
|
console.log( "Données : " + arg );
|
|
$(jq(pdf)).remove();
|
|
|
|
});
|
|
}
|
|
});
|
|
});
|
|
|
|
function jq( myid ) {
|
|
return "#" + myid.replace( /(:|\.|\[|\])/g, "\\$1" );
|
|
} |