Browse Source

详细描述加上适合苹果机的样式及js修改

jack 8 years ago
parent
commit
be678f0ab2

+ 3 - 3
app/js/updateinfo-res01.js

@ -35,7 +35,7 @@ mui.ready(function() {
35 35
				plus.nativeUI.toast("资源名称不能为空");
36 36
		});
37 37
		service[0].addEventListener("blur", function() {
38
			var length = trim(service[0].value);
38
			var length = trim(service[0].innerText);
39 39
			if(!length)
40 40
				plus.nativeUI.toast("应用用途不能为空");
41 41
		});
@ -43,7 +43,7 @@ mui.ready(function() {
43 43
		function savePro() {
44 44
			var $data = {};
45 45
			$data.resourceName = oDt[0].value;
46
			$data.supportedServices = service[0].value;
46
			$data.supportedServices = service[0].innerText;
47 47
			if(ws.rsId) {
48 48
				$data.resourceId = ws.rsId;
49 49
				mui.ajax(baseUrl + "/ajax/resource/nameAndSupport", {
@ -131,7 +131,7 @@ mui.ready(function() {
131 131
		}
132 132
		document.getElementsByClassName("topsave")[0].addEventListener("click", function() {
133 133
			var length1 = trim(oDt[0].value);
134
			var length2 = trim(service[0].value);
134
			var length2 = trim(service[0].innerText);
135 135
			if(length1 && length2) {
136 136
				savePro();
137 137
			} else if(!length1 && length2) {

+ 1 - 1
app/js/updateinfo-res04.js

@ -26,7 +26,7 @@ mui.ready(function() {
26 26
			mui.ajax(baseUrl + '/ajax/resource/descp', {
27 27
				data: {
28 28
					"resourceId": ws.rsId,
29
					"descp": document.getElementsByClassName("textareabox ")[0].value
29
					"descp": document.getElementsByClassName("textareabox ")[0].innerText
30 30
				},
31 31
				dataType: 'json', //数据格式类型
32 32
				async: true,

+ 1 - 1
app/js/updateinfo-res05.js

@ -28,7 +28,7 @@ mui.ready(function() {
28 28
			mui.ajax(baseUrl + '/ajax/resource/cooperationNotes', {
29 29
				data: {
30 30
					"resourceId": ws.rsId,
31
					"cooperationNotes": document.getElementsByClassName("textareabox")[0].value
31
					"cooperationNotes": document.getElementsByClassName("textareabox")[0].innerText
32 32
				},
33 33
				dataType: 'json', //数据格式类型
34 34
				async: true,

+ 1 - 1
app/js/updateinfo10.js

@ -62,7 +62,7 @@ mui.ready(function() {
62 62
			$data.name =oDt[0].value;
63 63
			$data.year = oDt[1].innerText;			
64 64
			$data.url = oDt[2].value;
65
			$data.descp = document.getElementsByClassName("textareabox")[0].value;			
65
			$data.descp = document.getElementsByClassName("textareabox")[0].innerText;			
66 66
			if(ws.edu) {
67 67
				$data.id=ws.edu;
68 68
			}			

+ 1 - 1
app/js/updateinfo11.js

@ -56,7 +56,7 @@ mui.ready(function() {
56 56
			$data.professorId = userid;
57 57
			$data.name =oDt[0].value;
58 58
			$data.year = oDt[1].innerText;						
59
			$data.descp = document.getElementsByClassName("textareabox")[0].value;			
59
			$data.descp = document.getElementsByClassName("textareabox")[0].innerText;			
60 60
			if(ws.edu) {
61 61
				$data.id=ws.edu;
62 62
			}			

+ 1 - 1
app/js/updateinfo2.js

@ -9,7 +9,7 @@ mui.ready(function() {
9 9
			mui.ajax(baseUrl + '/ajax/professor/descp', {
10 10
				data: {
11 11
					"id": userid,
12
					"descp": document.getElementsByClassName("borderarea")[0].value
12
					"descp": document.getElementsByClassName("borderarea")[0].innerText
13 13
				},
14 14
				dataType: 'json', //数据格式类型
15 15
				async: false,

+ 1 - 1
app/js/updateinfo8.js

@ -74,7 +74,7 @@ mui.ready(function() {
74 74
			$data.name =oDt[0].value;
75 75
			$data.startMonth = oDt[1].innerText.substr(0, 4) + oDt[1].innerText.substr(5, 7);
76 76
			$data.stopMonth = oDt[2].innerText.substr(0, 4) + oDt[2].innerText.substr(5, 7);			
77
			$data.descp = document.getElementsByClassName("textareabox")[0].value;		
77
			$data.descp = document.getElementsByClassName("textareabox")[0].innerText;		
78 78
			if(ws.edu) {
79 79
				$data.id=ws.edu;
80 80
			}			

+ 1 - 1
app/js/updateinfo9.js

@ -58,7 +58,7 @@ mui.ready(function() {
58 58
			$data.name = oDt[0].value;
59 59
			$data.year = oDt[1].innerText;
60 60
			$data.url = oDt[2].value;
61
			$data.descp = document.getElementsByClassName("textareabox")[0].value;			
61
			$data.descp = document.getElementsByClassName("textareabox")[0].innerText;			
62 62
			if(ws.edu) {
63 63
				$data.id=ws.edu;
64 64
			}