| Línea 391... |
Línea 391... |
| 391 |
console.log(response)
|
391 |
console.log(response)
|
| 392 |
$('body, html').animate({scrollTop: '0px'}, 300);
|
392 |
$('body, html').animate({scrollTop: '0px'}, 300);
|
| 393 |
$('#content1').css('display','block');
|
393 |
$('#content1').css('display','block');
|
| 394 |
$('.contenido').html('');
|
394 |
$('.contenido').html('');
|
| 395 |
seleccionarCampo.css('display','none');
|
395 |
seleccionarCampo.css('display','none');
|
| 396 |
$('#titleTypeImage').html('Imagen de la tienda')
|
396 |
$('#titleTypeImage').html('LABEL_IMAGE_MARKETPLACE')
|
| 397 |
$('.marketplaceImg').attr('src', '')
|
397 |
$('.marketplaceImg').attr('src', '')
|
| 398 |
fileToggle=true;
|
398 |
fileToggle=true;
|
| 399 |
gridTable.api().ajax.reload(null, false);
|
399 |
gridTable.api().ajax.reload(null, false);
|
| 400 |
} else {
|
400 |
} else {
|
| 401 |
validatorAdd.resetForm();
|
401 |
validatorAdd.resetForm();
|
| Línea 489... |
Línea 489... |
| 489 |
console.log(response)
|
489 |
console.log(response)
|
| 490 |
$('body, html').animate({scrollTop: '0px'}, 300);
|
490 |
$('body, html').animate({scrollTop: '0px'}, 300);
|
| 491 |
$('#content1').css('display','block');
|
491 |
$('#content1').css('display','block');
|
| 492 |
$('.contenido').html('');
|
492 |
$('.contenido').html('');
|
| 493 |
seleccionarCampo.css('display','none');
|
493 |
seleccionarCampo.css('display','none');
|
| 494 |
$('#titleTypeImage').html('Imagen de la tienda')
|
494 |
$('#titleTypeImage').html('LABEL_IMAGE_MARKETPLACE')
|
| 495 |
$('.marketplaceImg').attr('src', '')
|
495 |
$('.marketplaceImg').attr('src', '')
|
| 496 |
fileToggle=true;
|
496 |
fileToggle=true;
|
| 497 |
imagenEdit='';
|
497 |
imagenEdit='';
|
| 498 |
gridTable.api().ajax.reload(null, false);
|
498 |
gridTable.api().ajax.reload(null, false);
|
| 499 |
} else {
|
499 |
} else {
|
| Línea 747... |
Línea 747... |
| 747 |
$('#content1').css('display','block');
|
747 |
$('#content1').css('display','block');
|
| 748 |
seleccionarCampo.css('display','none');
|
748 |
seleccionarCampo.css('display','none');
|
| 749 |
$('.contenido').html('');
|
749 |
$('.contenido').html('');
|
| 750 |
$('.marketplaceImg').attr('src', '')
|
750 |
$('.marketplaceImg').attr('src', '')
|
| 751 |
}else{
|
751 |
}else{
|
| 752 |
$('#titleTypeImage').html('Imagen de la tienda')
|
752 |
$('#titleTypeImage').html('LABEL_IMAGE_MARKETPLACE')
|
| 753 |
$('.marketplaceImg').attr('src', '')
|
753 |
$('.marketplaceImg').attr('src', '')
|
| 754 |
fileToggle=true;
|
754 |
fileToggle=true;
|
| 755 |
iniciarEditor(seleccionarCampo,imagenServidorNoticia,false)
|
755 |
iniciarEditor(seleccionarCampo,imagenServidorNoticia,false)
|
| Línea 756... |
Línea 756... |
| 756 |
|
756 |
|
| Línea 769... |
Línea 769... |
| 769 |
if(fileToggle){
|
769 |
if(fileToggle){
|
| 770 |
e.preventDefault();
|
770 |
e.preventDefault();
|
| 771 |
setTimeout(function(){
|
771 |
setTimeout(function(){
|
| Línea 772... |
Línea 772... |
| 772 |
|
772 |
|
| 773 |
$('.marketplaceImg').attr('src', imagenServidorNoticia)
|
773 |
$('.marketplaceImg').attr('src', imagenServidorNoticia)
|
| 774 |
$('#titleTypeImage').html('Imagen de la capsula')
|
774 |
$('#titleTypeImage').html('LABEL_IMAGE')
|
| 775 |
fileToggle=false;
|
775 |
fileToggle=false;
|
| 776 |
if(imagenEdit==""){
|
776 |
if(imagenEdit==""){
|
| 777 |
iniciarEditor(seleccionarCampo)
|
777 |
iniciarEditor(seleccionarCampo)
|
| 778 |
}else{
|
778 |
}else{
|
| Línea 920... |
Línea 920... |
| 920 |
$(".titulo_pasos").html("LABEL_STEP_2");
|
920 |
$(".titulo_pasos").html("LABEL_STEP_2");
|
| 921 |
setTimeout(function(){
|
921 |
setTimeout(function(){
|
| 922 |
recorte_listo=true;
|
922 |
recorte_listo=true;
|
| 923 |
$(".fondo_oscuro").css("display","none");
|
923 |
$(".fondo_oscuro").css("display","none");
|
| 924 |
if(fileToggle){
|
924 |
if(fileToggle){
|
| 925 |
$("#boton_recortar").removeClass("recortar").text("adjuntar Imagen").addClass("info_noticia");
|
925 |
$("#boton_recortar").removeClass("recortar").text("LABEL_ATTACH_IMAGE").addClass("info_noticia");
|
| 926 |
}else{
|
926 |
}else{
|
| 927 |
$("#boton_recortar").removeClass("recortar").text("LABEL_SEND").addClass("info_noticia").attr('type','submit');
|
927 |
$("#boton_recortar").removeClass("recortar").text("LABEL_SEND").addClass("info_noticia").attr('type','submit');
|
| 928 |
}
|
928 |
}
|
| 929 |
$(".recortar10").removeClass("recortar");
|
929 |
$(".recortar10").removeClass("recortar");
|
| 930 |
$(".canvas").removeClass("recortar");
|
930 |
$(".canvas").removeClass("recortar");
|
| Línea 942... |
Línea 942... |
| 942 |
},editorNoticia(e));
|
942 |
},editorNoticia(e));
|
| Línea 943... |
Línea 943... |
| 943 |
|
943 |
|
| 944 |
|
944 |
|
| 945 |
})
|
945 |
})
|
| 946 |
setTimeout(function(){
|
946 |
setTimeout(function(){
|
| 947 |
$(".canvas_subir").html('<span class="icon-plus fa fa-spinner"></span> Cargando...')
|
947 |
$(".canvas_subir").html('<span class="icon-plus fa fa-spinner"></span> LABEL_LOADING...')
|
| 948 |
selectorElementoName.trigger('change');
|
948 |
selectorElementoName.trigger('change');
|
| 949 |
},selectorElementoEditor.html(nuevoHtmlImagen));
|
949 |
},selectorElementoEditor.html(nuevoHtmlImagen));
|
| 950 |
}else{
|
950 |
}else{
|
| Línea 956... |
Línea 956... |
| 956 |
setTimeout(function(){
|
956 |
setTimeout(function(){
|
| 957 |
recorte_listo=true;
|
957 |
recorte_listo=true;
|
| 958 |
$(".fondo_oscuro").css("display","none");
|
958 |
$(".fondo_oscuro").css("display","none");
|
| 959 |
if(fileToggle){
|
959 |
if(fileToggle){
|
| Línea 960... |
Línea 960... |
| 960 |
|
960 |
|
| 961 |
$("#boton_recortar").removeClass("recortar").text("adjuntar Imagen").addClass("info_noticia");
|
961 |
$("#boton_recortar").removeClass("recortar").text("LABEL_ATTACH_IMAGE").addClass("info_noticia");
|
| 962 |
}else{
|
962 |
}else{
|
| Línea 963... |
Línea 963... |
| 963 |
$("#boton_recortar").removeClass("recortar").text("LABEL_SEND").addClass("info_noticia").attr('type','submit');
|
963 |
$("#boton_recortar").removeClass("recortar").text("LABEL_SEND").addClass("info_noticia").attr('type','submit');
|
| 964 |
|
964 |
|
| Línea 1694... |
Línea 1694... |
| 1694 |
|
1694 |
|
| 1695 |
e.preventDefault();
|
1695 |
e.preventDefault();
|
| 1696 |
recorte_listo=false;
|
1696 |
recorte_listo=false;
|
| 1697 |
uno=true;
|
1697 |
uno=true;
|
| 1698 |
$(".fondo_oscuro").css("display","block");
|
1698 |
$(".fondo_oscuro").css("display","block");
|
| 1699 |
$("#boton_recortar").addClass("recortar").text("Recortar").removeClass("info_noticia");
|
1699 |
$("#boton_recortar").addClass("recortar").text("LABEL_CUT").removeClass("info_noticia");
|
| 1700 |
$("#boton_recortar3").addClass("recortar").text("Recortar").removeClass("info_noticia3");
|
1700 |
$("#boton_recortar3").addClass("recortar").text("LABEL_CUT").removeClass("info_noticia3");
|
| 1701 |
$(".contenido_text").css("display", "none");
|
1701 |
$(".contenido_text").css("display", "none");
|
| 1702 |
$(".contenido_filter").css("display", "none");
|
1702 |
$(".contenido_filter").css("display", "none");
|
| 1703 |
$(".recortar10").addClass("recortar");
|
1703 |
$(".recortar10").addClass("recortar");
|
| 1704 |
$(".canvas").addClass("recortar")
|
1704 |
$(".canvas").addClass("recortar")
|
| Línea 1739... |
Línea 1739... |
| 1739 |
$(document).on("click", ".boton_marino.recortar",function(e){
|
1739 |
$(document).on("click", ".boton_marino.recortar",function(e){
|
| 1740 |
e.preventDefault();
|
1740 |
e.preventDefault();
|
| 1741 |
recorte_listo=true;
|
1741 |
recorte_listo=true;
|
| 1742 |
$(".fondo_oscuro").css("display","none");
|
1742 |
$(".fondo_oscuro").css("display","none");
|
| 1743 |
if(fileToggle){
|
1743 |
if(fileToggle){
|
| 1744 |
$("#boton_recortar").removeClass("recortar").text("adjuntar Imagen").addClass("info_noticia");
|
1744 |
$("#boton_recortar").removeClass("recortar").text("LABEL_ATTACH_IMAGE").addClass("info_noticia");
|
| 1745 |
}else{
|
1745 |
}else{
|
| 1746 |
$("#boton_recortar").removeClass("recortar").text("LABEL_SEND").addClass("info_noticia").attr('type','submit');
|
1746 |
$("#boton_recortar").removeClass("recortar").text("LABEL_SEND").addClass("info_noticia").attr('type','submit');
|
| 1747 |
}
|
1747 |
}
|
| 1748 |
$(".recortar10").removeClass("recortar");
|
1748 |
$(".recortar10").removeClass("recortar");
|
| 1749 |
$(".canvas").removeClass("recortar");
|
1749 |
$(".canvas").removeClass("recortar");
|
| Línea 2288... |
Línea 2288... |
| 2288 |
$element->setAttributes([ 'class' => 'file']);
|
2288 |
$element->setAttributes([ 'class' => 'file']);
|
| 2289 |
echo $this->formHidden($element);
|
2289 |
echo $this->formHidden($element);
|
| 2290 |
?>
|
2290 |
?>
|
| 2291 |
<div class="form-group grid-1-2 ">
|
2291 |
<div class="form-group grid-1-2 ">
|
| 2292 |
<div class="imagen-contaner">
|
2292 |
<div class="imagen-contaner">
|
| 2293 |
<label for="marketplaceImg">Imagen de la tienda</label>
|
2293 |
<label for="marketplaceImg">LABEL_IMAGE_MARKETPLACE</label>
|
| 2294 |
<img class='marketplaceImg' src='' class="img img-responsive" style="width: 100px; height: auto"></img>
|
2294 |
<img class='marketplaceImg' src='' class="img img-responsive" style="width: 100px; height: auto"></img>
|
| 2295 |
</div>
|
2295 |
</div>
|
| 2296 |
</div>
|
2296 |
</div>
|
| 2297 |
<h5 style="text-align:center " class="form-group grid-1-2" id='titleTypeImage'>Imagen de la tienda</h5>
|
2297 |
<h5 style="text-align:center " class="form-group grid-1-2" id='titleTypeImage'>LABEL_IMAGE_MARKETPLACE</h5>
|
| 2298 |
<div class="contenido form-group " id="contenido"></div>
|
2298 |
<div class="contenido form-group " id="contenido"></div>
|
| Línea 2299... |
Línea 2299... |
| 2299 |
|
2299 |
|
| 2300 |
<?php echo $this->form()->closeTag($form); ?>
|
2300 |
<?php echo $this->form()->closeTag($form); ?>
|
| Línea 2404... |
Línea 2404... |
| 2404 |
$element->setAttributes([ 'class' => 'file']);
|
2404 |
$element->setAttributes([ 'class' => 'file']);
|
| 2405 |
echo $this->formHidden($element);
|
2405 |
echo $this->formHidden($element);
|
| 2406 |
?>
|
2406 |
?>
|
| 2407 |
<div class="form-group grid-1-2 ">
|
2407 |
<div class="form-group grid-1-2 ">
|
| 2408 |
<div class="imagen-contaner">
|
2408 |
<div class="imagen-contaner">
|
| 2409 |
<label for="marketplaceImg">Imagen de la tienda</label>
|
2409 |
<label for="marketplaceImg">LABEL_IMAGE_MARKETPLACE</label>
|
| 2410 |
<img class='marketplaceImg' src='' class="img img-responsive" style="width: 100px; height: auto"></img>
|
2410 |
<img class='marketplaceImg' src='' class="img img-responsive" style="width: 100px; height: auto"></img>
|
| 2411 |
</div>
|
2411 |
</div>
|
| 2412 |
</div>
|
2412 |
</div>
|
| 2413 |
<h5 style="text-align:center " class="form-group grid-1-2" id='titleTypeImage'>Imagen de la tienda</h5>
|
2413 |
<h5 style="text-align:center " class="form-group grid-1-2" id='titleTypeImage'>LABEL_IMAGE_MARKETPLACE</h5>
|
| 2414 |
<div class="contenido form-group " id="contenido"></div>
|
2414 |
<div class="contenido form-group " id="contenido"></div>
|
| Línea 2415... |
Línea 2415... |
| 2415 |
|
2415 |
|
| 2416 |
<?php echo $this->form()->closeTag($form); ?>
|
2416 |
<?php echo $this->form()->closeTag($form); ?>
|