minmod interface minimale (js) #11

This commit is contained in:
xdrm-brackets 2016-05-18 17:12:46 +02:00
parent 9916f0d2f3
commit bc51b65956
2 changed files with 12 additions and 1 deletions

2
view/js/data-min.js vendored
View File

@ -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);

View File

@ -13,4 +13,15 @@ $('#export-form #export-all').addEventListener('click', function(e){
// On récupère les données du formulaire // On récupère les données du formulaire
var deflated = exportDeflater.deflate(); 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); }, false);