Browse Source

1.对话页标题咨询信息bug
2.设置照片,格式插件有过滤,无需提示格式不正确

xiaoai_123 8 years ago
parent
commit
f77f3576a8
2 changed files with 19 additions and 6 deletions
  1. 1 1
      src/main/webapp/diloags.html
  2. 18 5
      src/main/webapp/photo-set.html

+ 1 - 1
src/main/webapp/diloags.html

@ -3,7 +3,7 @@
3 3
 <div class="consultdialogbox">
4 4
	<div class="consultdialog">
5 5
    	<div class="dialoghead">
6
        	<a class="backupbtn" id="backBtn" href="javascript:history.go(-1);"></a>
6
        	<a class="backupbtn" id="backBtn"></a>
7 7
            <div class="dheadtit">与<span class="dialogpro" id="dial_consultName"></span>对话中</div>
8 8
        </div>
9 9
        <div class="dialogcontain">

+ 18 - 5
src/main/webapp/photo-set.html

@ -85,9 +85,9 @@
85 85
                 -->
86 86
                 <div class="clear"></div>
87 87
             </div>
88
	<input type="button" value="保存" class="inputtxt inputtxtbtn save" id="saveImage">
88
	<input type="button" value="保存" class="inputtxt inputtxtbtn save" id="saveImage" >
89 89
	<input type="button" value="取消" class="inputtxt inputtxtbtn  close" >
90
	<input type="button" value="返回" class="inputtxt inputtxtbtn " id="back" >
90
	<input type="button" value="返回" class="inputtxt inputtxtbtn " id="back">
91 91
	
92 92
  </div>
93 93
</div>
@ -147,7 +147,8 @@ $(function (){
147 147
		});
148 148
	
149 149
		// 当有文件添加进来的时候
150
		uploader.on( 'fileQueued', function( file ) {					
150
		uploader.on( 'fileQueued', function( file ) {	
151
			/* alert(file.name); */		
151 152
		    var $li = $(
152 153
		            '<div id="' + file.id + '" class="file-item thumbnail">' +
153 154
		                '<img>' +
@ -171,6 +172,18 @@ $(function (){
171 172
		        }
172 173
		        $img.attr( 'src', src );
173 174
		    }, 240, 240 );
175
		    
176
		    //判断上传文件格式
177
		  /*   var fileNameAll = file.name;
178
		    var AllImgExt=".jpg|.jpeg|.gif|.bmp|.png|";
179
		    var extName = fileNameAll.substring(fileNameAll.lastIndexOf(".")).toLowerCase();//(把路径中的所有字母全部转换为小写)
180
	        if(AllImgExt.indexOf(extName+"|")==-1){
181
	            var ErrMsg="该文件类型不允许上传。请上传 "+AllImgExt+" 类型的文件,当前文件类型为"+extName;
182
	            $.MsgBox.Alert('提示',ErrMsg);
183
	            return false;
184
	        }  */
185

186
		    
174 187
		});
175 188
		
176 189
    	// 文件上传过程中创建进度条实时显示。
@ -275,8 +288,8 @@ $(function (){
275 288
    
276 289
    //返回
277 290
	$("#back").on("click",function(){
278
		location.href="index.html";
279
	})
291
		window.history.back(-1); 
292
	}) 
280 293

281 294
})
282 295