cambios

parent 8b47e32d
......@@ -180,7 +180,7 @@
var url = "{{ path('nutrapharm_upload') }}";
var formData = new FormData();
$("#btnGuardar").prop("disabled", true);
$("#btnGuardar").html("Procesando...");
if (imagenTomada == true && imagenSubida == false) {
formData.append("upload_file", 0);
formData.append("imagen", $("#photo").attr('src'));
......@@ -234,6 +234,7 @@
},
complete: function (data) {
$("#btnGuardar").prop("disabled", false);
$("#btnGuardar").html("Finalizar");
}
});
};
......
......@@ -195,6 +195,7 @@
var url = "{{ path('nutrapharm_upload') }}";
var formData = new FormData();
$("#btnGuardar").prop("disabled", true);
$("#btnGuardar").html("Procesando...");
if (imagenTomada == true && imagenSubida == false) {
formData.append("upload_file", 0);
......@@ -249,6 +250,7 @@
},
complete: function (data) {
$("#btnGuardar").prop("disabled", false);
$("#btnGuardar").html("Finalizar");
}
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment