Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8290 Rev 8354
Línea 1040... Línea 1040...
1040
		if(img.type =="image/jpeg"||img.type =="image/png"){
1040
		if(img.type =="image/jpeg"||img.type =="image/png"){
1041
			$(".modificar").removeClass("animated");
1041
			$(".modificar").removeClass("animated");
1042
			var render = new FileReader();
1042
			var render = new FileReader();
1043
			render.readAsDataURL(img);
1043
			render.readAsDataURL(img);
1044
			render.onload = function(e){
1044
			render.onload = function(e){
-
 
1045
				imagen2=new Image();
-
 
1046
				imagen2.src=e.target.result;
-
 
1047
				
-
 
1048
				$(imagen2).ready(function(e){
-
 
1049
					console.log(imagen2.width)
-
 
1050
					console.log(imagen2.height)
-
 
1051
					if(imagen2.width<100||imagen2.height<100){
-
 
1052
						$.fn.showError('La imagen debe tener al menos un tamano mayor a 100x100');
-
 
1053
					}else{
1045
				$(".volver").css("display","block")
1054
						$(".volver").css("display","block")
1046
				$(".a1").addClass("paso");
1055
						$(".a1").addClass("paso");
1047
				$(".titulo_pasos").html("LABEL_STEP_2");
1056
						$(".titulo_pasos").html("LABEL_STEP_2");
1048
				console.log(e.target.result)
-
 
1049
				editorNoticia(e.target.result)
1057
						editorNoticia(imagen2.src)
-
 
1058
					}			
-
 
1059
				})
1050
			}	
1060
			}
-
 
1061
		}else{
-
 
1062
			$.fn.showError('imagen debe ser un JPG o PNG');
1051
		}
1063
		}
1052
	})	
1064
	})	
1053
	$(document).on("dragover", "body", function(e){
1065
	$(document).on("dragover", "body", function(e){
1054
		e.preventDefault();
1066
		e.preventDefault();
1055
		e.stopPropagation();
1067
		e.stopPropagation();