Browse Source

论文导入

luyanan 7 years ago
parent
commit
80926cb557
3 changed files with 10 additions and 8 deletions
  1. 1 1
      css/genindex.css
  2. 4 2
      js/paperImport.js
  3. 5 5
      js/paperList.js

+ 1 - 1
css/genindex.css

@ -702,7 +702,7 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
702 702
.mr_calendar_ym .full_year li{list-style:none;margin:0;cursor: pointer;line-height: 32px;background-color: #fff;color: #333;text-align: left;padding-left:16px;}
703 703
.mr_calendar_ym .active { background-color: #ff9900!important;color: #fff!important;}
704 704
705
.modifybox .form-result.keyResult{margin: -10px;}
705
.modifybox .form-result.keyResult{margin-top: -10px;}
706 706
.listnone1 .modifybox{margin-left:-25px;}
707 707
.showBx + .modifybox{margin-left: -25px;}
708 708
.coninfocon.listSector>ul>li.listnone1:before{content:none;}

+ 4 - 2
js/paperImport.js

@ -85,7 +85,7 @@ function paperHtml($data) {
85 85
 		var oId=$data[i].id;
86 86
 		
87 87
		var oT,oText;
88
		if($data.data) {
88
		if($data[i].professorId.substring(0,1)!="#") {
89 89
			oT="importSpan-2";
90 90
			oText="已导入";
91 91
		}else{
@ -135,7 +135,9 @@ function paperHtml($data) {
135 135
			"type": "POST",
136 136
			"success": function(data) {
137 137
				if(data.success) {
138
					$this.text("导入成功").addClass("importSpan-3").removeClass("importSpan-1").removeClass("importSpan-2").attr("flag","2").css("cursor","auto");
138
					if(data.data){
139
						$this.text("导入成功").addClass("importSpan-3").removeClass("importSpan-1").removeClass("importSpan-2").attr("flag","2").css("cursor","auto");
140
					}
139 141
				}
140 142
					
141 143
			},

+ 5 - 5
js/paperList.js

@ -6,7 +6,7 @@ $(document).ready(function(){
6 6
	var userid = $.cookie("userid");
7 7
	var userName = $.cookie("userName");
8 8
	var paperId;
9
	/*资源列表查询*/
9
	/*论文列表查询*/
10 10
	function getPaperMe(n,isbind,num) {
11 11
		var paperNameVa=$("#paperName").val();
12 12
		var $info={};
@ -94,7 +94,7 @@ $(document).ready(function(){
94 94
	/*点击删除跳转修改页面*/
95 95
	$("#paperList").on("click",".deteleThis2",function(){
96 96
		paperId=$(this).attr("data-id");
97
		$.MsgBox.Confirm("提示", "确认删除该资源?",delePaper);
97
		$.MsgBox.Confirm("提示", "确认删除该论文?",delePaper);
98 98
	})
99 99
	/*删除函数*/
100 100
	function delePaper() {
@ -115,11 +115,11 @@ $(document).ready(function(){
115 115
					dataType: "json"
116 116
				});
117 117
	}
118
	/*输入资源名称限制字数*/
118
	/*输入论文名称限制字数*/
119 119
	$("#paperName").bind({
120 120
		keyup: function() {
121
			if($(this).val().length > 30) {
122
				$(this).val($(this).val().substr(0, 30));
121
			if($(this).val().length > 50) {
122
				$(this).val($(this).val().substr(0, 50));
123 123
			}
124 124
		}
125 125
	});