Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11029 Rev 11031
Línea 1914... Línea 1914...
1914
			render.onload = function(e){
1914
			render.onload = function(e){
1915
				imagen2=new Image();
1915
				imagen2=new Image();
1916
				imagen2.src=e.target.result;
1916
				imagen2.src=e.target.result;
Línea 1917... Línea 1917...
1917
				
1917
				
1918
				$(imagen2).ready(function(e){
1918
				$(imagen2).ready(function(e){
-
 
1919
					if(imagen2.width<320||imagen2.height<480){
-
 
1920
						$.fn.showError('LABEL_MINIMUM_IMAGE_SIZE');
-
 
1921
					}else{
-
 
1922
						$(".volver").css("display","block")
-
 
1923
						$(".a1").addClass("paso");
-
 
1924
						$(".titulo_pasos").html("LABEL_STEP_2");
-
 
1925
						editorNoticia(imagen2.src)
-
 
1926
					}			
-
 
1927
				})
-
 
1928
			}
-
 
1929
		}else{
-
 
1930
			$.fn.showError('LABEL_SUPPORTED_FORMATS');
-
 
1931
		}
-
 
1932
	})	
-
 
1933
    $(document).on("change", "#imagen_noticia_file", function(e){
-
 
1934
		file = $(this)[0].files[0];
-
 
1935
		e.preventDefault();
-
 
1936
		$(this).css("background", "none");
-
 
1937
		var archivo = file;
-
 
1938
		var img=file;
-
 
1939
		if(img.type =="image/jpeg"||img.type =="image/png"){
-
 
1940
			$(".modificar").removeClass("animated");
-
 
1941
			var render = new FileReader();
-
 
1942
			render.readAsDataURL(img);
-
 
1943
			render.onload = function(e){
-
 
1944
				imagen2=new Image();
-
 
1945
				imagen2.src=e.target.result;
-
 
1946
				
-
 
1947
				$(imagen2).ready(function(e){
1919
					if(imagen2.width<200||imagen2.height<200){
1948
					if(imagen2.width<320||imagen2.height<480){
1920
						$.fn.showError('LABEL_MINIMUM_IMAGE_SIZE');
1949
						$.fn.showError('LABEL_MINIMUM_IMAGE_SIZE');
1921
					}else{
1950
					}else{
1922
						$(".volver").css("display","block")
1951
						$(".volver").css("display","block")
1923
						$(".a1").addClass("paso");
1952
						$(".a1").addClass("paso");