Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 10864 | Rev 10867 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 10864 Rev 10866
Línea 751... Línea 751...
751
			}
751
			}
752
		}else{
752
		}else{
753
			$.fn.showError('LABEL_SUPPORTED_FORMATS');
753
			$.fn.showError('LABEL_SUPPORTED_FORMATS');
754
		}
754
		}
755
	})
755
	})
-
 
756
	$(document).on("change", "#imagen_noticia_file", function(e){
-
 
757
		file = $(this)[0].files[0];
-
 
758
		console.log(file)
-
 
759
		/*e.preventDefault();
-
 
760
		e.stopPropagation();
-
 
761
		$(this).css("background", "none");
-
 
762
		var archivo = e.originalEvent.dataTransfer.files;
-
 
763
		var img=archivo[0];
-
 
764
		if(img.type =="image/jpeg"||img.type =="image/png"){
-
 
765
			$(".modificar").removeClass("animated");
-
 
766
			var render = new FileReader();
-
 
767
			render.readAsDataURL(img);
-
 
768
			render.onload = function(e){
-
 
769
				imagen2=new Image();
-
 
770
				imagen2.src=e.target.result;
756
		
771
				
-
 
772
				$(imagen2).ready(function(e){
-
 
773
					if(imagen2.width<200||imagen2.height<200){
-
 
774
						$.fn.showError('LABEL_MINIMUM_IMAGE_SIZE');
-
 
775
					}else{
-
 
776
						$(".volver").css("display","block")
-
 
777
						$(".a1").addClass("paso");
-
 
778
						$(".titulo_pasos").html("LABEL_STEP_2");
-
 
779
						editorNoticia(imagen2.src)
-
 
780
					}			
-
 
781
				})
-
 
782
			}
-
 
783
		}else{
-
 
784
			$.fn.showError('LABEL_SUPPORTED_FORMATS');
-
 
785
		}*/
-
 
786
	})	
757
	$(document).on("dragover", "body", function(e){
787
	$(document).on("dragover", "body", function(e){
758
		e.preventDefault();
788
		e.preventDefault();
759
		e.stopPropagation();
789
		e.stopPropagation();
760
	})
790
	})
761
	$(document).on("drop", "body", function(e){
791
	$(document).on("drop", "body", function(e){
Línea 1845... Línea 1875...
1845
        <div class="fondo_oscuro"></div>
1875
        <div class="fondo_oscuro"></div>
1846
        <div class="editor_imagenes2 ">
1876
        <div class="editor_imagenes2 ">
1847
            <div>
1877
            <div>
1848
                <div class="canvas_imagen">
1878
                <div class="canvas_imagen">
1849
                    <div class="canvas recortar">
1879
                    <div class="canvas recortar">
1850
                        <div class="canvas_subir" id="imagen_noticia">LABEL_DRAG_IMAGE_HERE o seleccione un archivo <input type="file"></div>
1880
                        <div class="canvas_subir" id="imagen_noticia">LABEL_DRAG_IMAGE_HERE o seleccione un archivo <input type="file" id="imagen_noticia_file"></div>
1851
                    </div>
1881
                    </div>
1852
                </div>
1882
                </div>
1853
                <div class="botones_dimenciones">
1883
                <div class="botones_dimenciones">
1854
                    <div class="scale">
1884
                    <div class="scale">
1855
                        <div class="dimenciones">
1885
                        <div class="dimenciones">