Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11027 Rev 11030
Línea 1048... Línea 1048...
1048
			render.onload = function(e){
1048
			render.onload = function(e){
1049
				imagen2=new Image();
1049
				imagen2=new Image();
1050
				imagen2.src=e.target.result;
1050
				imagen2.src=e.target.result;
Línea 1051... Línea 1051...
1051
				
1051
				
1052
				$(imagen2).ready(function(e){
1052
				$(imagen2).ready(function(e){
-
 
1053
					if(imagen2.width<320||imagen2.height<480){
-
 
1054
						$.fn.showError('LABEL_MINIMUM_IMAGE_SIZE');
-
 
1055
					}else{
-
 
1056
						$(".volver").css("display","block")
-
 
1057
						$(".a1").addClass("paso");
-
 
1058
						$(".titulo_pasos").html("LABEL_STEP_2");
-
 
1059
						editorNoticia(imagen2.src)
-
 
1060
					}			
-
 
1061
				})
-
 
1062
			}
-
 
1063
		}else{
-
 
1064
			$.fn.showError('LABEL_SUPPORTED_FORMATS');
-
 
1065
		}
-
 
1066
	})	
-
 
1067
	$(document).on("change", "#imagen_noticia_file", function(e){
-
 
1068
		file = $(this)[0].files[0];
-
 
1069
		e.preventDefault();
-
 
1070
		$(this).css("background", "none");
-
 
1071
		var archivo = file;
-
 
1072
		var img=file;
-
 
1073
		if(img.type =="image/jpeg"||img.type =="image/png"){
-
 
1074
			$(".modificar").removeClass("animated");
-
 
1075
			var render = new FileReader();
-
 
1076
			render.readAsDataURL(img);
-
 
1077
			render.onload = function(e){
-
 
1078
				imagen2=new Image();
-
 
1079
				imagen2.src=e.target.result;
-
 
1080
				
-
 
1081
				$(imagen2).ready(function(e){
1053
					if(imagen2.width<200||imagen2.height<200){
1082
					if(imagen2.width<320||imagen2.height<480){
1054
						$.fn.showError('LABEL_MINIMUM_IMAGE_SIZE');
1083
						$.fn.showError('LABEL_MINIMUM_IMAGE_SIZE');
1055
					}else{
1084
					}else{
1056
						$(".volver").css("display","block")
1085
						$(".volver").css("display","block")
1057
						$(".a1").addClass("paso");
1086
						$(".a1").addClass("paso");