se elimina boton de volver a paso 1 en paso 3

parent dc625f79
......@@ -121,8 +121,9 @@
var fileUpload = $("#imgInp");
function mostrarTomarFoto(event) {
event.preventDefault();
var fotoActual = $("#foto_actual");
fotoActual.css("background-image", "url('')");
//var fotoActual = $("#tomarFotoContainer");
//fotoActual.css("background-image", "url('')");
$("#imagen_carga").attr('src', "");
console.log("mostrando tomar foto...");
$("#tomarFotoContainer").show();
$("#cameraContainer").show();
......@@ -131,6 +132,7 @@
$("#output_img_inovage").hide();
$("#imagenUsuario").attr('src', "");
$("#imagenUsuario").hide();
$("#imagen_carga").hide();
imagenTomada = true;
imagenSubida = false;
}
......@@ -159,6 +161,7 @@
var reader = new FileReader();
reader.onload = function (e) {
$('#imagenUsuario').attr('src', e.target.result);
$('#imagen_carga').attr('src', e.target.result);
generateUrlBackground(e.target.result, "data");
}
reader.readAsDataURL(input.files[0]); // convert to base64 string
......@@ -294,16 +297,17 @@
function generateUrlBackground(source, type) {
if (type == "url") {
var fotoActual = $("#foto_actual");
var fotoActual = $("#imagen_carga");
var img = new Image();
img.src = source;
fotoActual.css("background-image", "url('" + img.src + "')");
fotoActual.attr("src", img.src);
fotoActual.show();
} else {
var fotoActual = $("#foto_actual");
var fotoActual = $("#imagen_carga");
var img = new Image();
img.src = source;
fotoActual.css("background-image", "url('" + img.src.replace(/(\r\n|\n|\r)/gm, "") + "')");
fotoActual.css("src", img.src.replace(/(\r\n|\n|\r)/gm, ""));
fotoActual.show();
}
......
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