Pārlūkot izejas kodu

添加应用行业或者学术领域,当输入内容才添加,否则不添加

luyanan 8 gadi atpakaļ
vecāks
revīzija
12a3505716
1 mainītis faili ar 19 papildinājumiem un 6 dzēšanām
  1. 19 6
      src/main/webapp/js/sciresource.js

+ 19 - 6
src/main/webapp/js/sciresource.js

75
	function addDele(){
75
	function addDele(){
76
		$("#industryList").on("click",".removeNu",function(){					
76
		$("#industryList").on("click",".removeNu",function(){					
77
			$(this).parent().remove();
77
			$(this).parent().remove();
78
			});	
78
			});
79
		
80
		
79
		$("#industryAdd").click(function(){
81
		$("#industryAdd").click(function(){
82
			if($.trim($("#industry").val())){
80
			var val=$("#industry").val();
83
			var val=$("#industry").val();
81
			$("#industryList").append("<div class='deleteIndustry'>"+ val +"<span class='removeNu'><img src='images/move.png'></span></div>")							
84
			$("#industryList").append("<div class='deleteIndustry'>"+ val +"<span class='removeNu'><img src='images/move.png'></span></div>")							
85
			}else{
86
				$.MsgBox.Alert("消息","应用行业不能为空");
87
			}
82
			});
88
			});
83
		$("#SubjectList").on("click",".removeNu",function(){					
89
		$("#SubjectList").on("click",".removeNu",function(){					
84
			$(this).parent().remove();
90
			$(this).parent().remove();
85
			});	
86
		$("#subjectAdd").click(function(){				
87
			var val=$("#subject").val();
88
			$("#SubjectList").append("<div class='deleteSubject'>"+ val +"<span class='removeNu'><img src='images/move.png'></span></div>")							
89
			});
91
			});					
92
			$("#subjectAdd").click(function(){
93
				if($.trim($("#subject").val())){
94
				var val=$("#subject").val();
95
				$("#SubjectList").append("<div class='deleteSubject'>"+ val +"<span class='removeNu'><img src='images/move.png'></span></div>")							
96
				}else{
97
					$.MsgBox.Alert("消息","学术领域不能为空");
98
				}
99
				});
100
		
101
		
90
	}
102
	}
103

91
//我的资源的删除,修改
104
//我的资源的删除,修改
92
	$("#workmysrc").on("click",".resoumag",function()
105
	$("#workmysrc").on("click",".resoumag",function()
93
			{ 		
106
			{