minmod interface minimale (js) #11
This commit is contained in:
parent
9916f0d2f3
commit
bc51b65956
|
@ -1 +1 @@
|
|||
var exportDeflater=new FormDeflater(document.getElementById("export-form"),["input"],["data-name"]);$("#export-form #export-all").addEventListener("click",function(a){exportDeflater.deflate()},!1);
|
||||
var exportDeflater=new FormDeflater(document.getElementById("export-form"),["input"],["data-name"]);$("#export-form #export-all").addEventListener("click",function(b){"1"==exportDeflater.deflate().phone&&api.send({path:"download/phone",subjects:[1,137]},function(a){console.log(a)})},!1);
|
||||
|
|
|
@ -13,4 +13,15 @@ $('#export-form #export-all').addEventListener('click', function(e){
|
|||
// On récupère les données du formulaire
|
||||
var deflated = exportDeflater.deflate();
|
||||
|
||||
/* (1) Si téléchargement de données cellulaires */
|
||||
if( deflated.phone == '1' ){
|
||||
|
||||
api.send({ 'path': 'download/phone', 'subjects': [1, 137] }, function(res){
|
||||
console.log(res);
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}, false);
|
||||
|
|
Loading…
Reference in New Issue