Browse Source

科袖维护系统中,“学术领域、研究方向和行业应用在编辑后无法删除,第二次打开后重复出现”问题解决。

luyanan 8 years ago
parent
commit
c1400c9b74
2 changed files with 17 additions and 8 deletions
  1. 6 2
      src/main/webapp/page/professor.html
  2. 11 6
      src/main/webapp/search.html

+ 6 - 2
src/main/webapp/page/professor.html

@ -72,7 +72,7 @@
72 72
		</div>
73 73
		<div class="row">
74 74
			<div class="col-sm-3">
75
				<image id="headImage" src=""></image>
75
				<a href='professor.html'><image id="headImage" src=""></image></a>
76 76
			</div>
77 77
			<div class="col-sm-6">
78 78
				<form class="form-horizontal">
@ -759,6 +759,7 @@
759 759
								$.get("../ajax/researchArea/"+professorId,function($data){
760 760
									if($data.success){
761 761
										if($data.data){
762
										$('#raLists').empty();
762 763
											var $ras = $data.data;
763 764
											for(var i = 0 ; i < $ras.length;++i){
764 765
												fillRA($ras[i].caption,$ras[i].descp);
@ -803,12 +804,15 @@
803 804
								});
804 805
								
805 806
							});
807
							setInterval(function(){
806 808
							$(".raClose").on("click",function(){
807
								alert(111);
809
								
808 810
								$this=$(this);
809 811
								$this.parent().remove();
810 812
								return false;
811 813
							});
814
							},1000);
815
							
812 816
							$("#jobLabel").on("click",function(){
813 817
								$("#jobModal").data("pid", "");
814 818
								$("#job_startMonth").val("");

+ 11 - 6
src/main/webapp/search.html

@ -56,12 +56,17 @@ $.get("/ajax/org/qa",function($da) {
56 56
									   
57 57
									var dataHtml = "<div class='item'>";
58 58
									
59
									dataHtml += "<a  id='infoi'href='information-brow.html?professorId="+$data.data.data[i].id+"' ><div class='photo1'><img id='images1' style='width:100%' src='"servPath+"/images/head/"+$data.data.data[i].id+"_l.jpg'/></div></a>";
60
									$("img#images1").load(function(){
61
									})
59
									dataHtml += "<a  id='infoi'  href='information-brow.html?professorId="+$data.data.data[i].id+"' ><div class='photo1'><img class='images' style='width:100%;'  src='images/head/"+$data.data.data[i].id+"_l.jpg'/></div></a>";
60
								
61
									$(".images").eq(i).load(function(){
62
										
63
										})
62 64
									.error(function(){
63
 									$("img#images1").attr("src","'servPath+'/images/default-photo.jpg");
64
									});
65
										
66
										$(this).attr("src","images/default-photo.jpg");
67
									  });
68
									
69
									
65 70
									
66 71
									dataHtml += "<div class='synopsis'>";
67 72
									dataHtml += "<a href='information-brow.html?professorId="+$data.data.data[i].id+"' class='named'>";
@ -202,7 +207,7 @@ $.get("/ajax/org/qa",function($da) {
202 207
				<!--<a href="index.html"><span class="icon icon1"></span>我的主页</a>-->
203 208
				<a href="information.html"><span class="icon icon2"></span>修改资料</a>
204 209
				<a href="account-set.html"><span class="icon icon3"></span>账户设置</a>
205
				<a href="#" onclick="exit()"><span class="icon icon4" ></span>退出登录</a>
210
				<a href="#" onClick="exit()"><span class="icon icon4" ></span>退出登录</a>
206 211
			</div>
207 212
		</div>
208 213
	</div>