jack 7 年之前
父節點
當前提交
d8da3fe28a
共有 4 個文件被更改,包括 17 次插入14 次删除
  1. 3 3
      cmp-portal/js/articalIssue.js
  2. 5 4
      cmp-portal/js/articalModify.js
  3. 3 3
      js/articalIssue.js
  4. 6 4
      js/articalModify.js

+ 3 - 3
cmp-portal/js/articalIssue.js

11
	//校验标题
11
	//校验标题
12
	$("#newstitle").on({
12
	$("#newstitle").on({
13
		focus: function() {
13
		focus: function() {
14
			$(this).prev().find("span").text("30字以内");
14
			$(this).prev().find("span").text("50字以内");
15
		},
15
		},
16
		blur: function() {
16
		blur: function() {
17
			$(this).prev().find("span").text("");
17
			$(this).prev().find("span").text("");
18
		},
18
		},
19
		keyup: function() {
19
		keyup: function() {
20
			if($(this).val().length > 30) {
21
				$(this).val($(this).val().substr(0, 30));
20
			if($(this).val().length > 50) {
21
				$(this).val($(this).val().substr(0, 50));
22
			}
22
			}
23
		}
23
		}
24
	})
24
	})

+ 5 - 4
cmp-portal/js/articalModify.js

16
	//校验标题
16
	//校验标题
17
	$("#newstitle").on({
17
	$("#newstitle").on({
18
		focus: function() {
18
		focus: function() {
19
			$(this).prev().find("span").text("30字以内");
19
			$(this).prev().find("span").text("50字以内");
20
		},
20
		},
21
		blur: function() {
21
		blur: function() {
22
			$(this).prev().find("span").text("");
22
			$(this).prev().find("span").text("");
23
		},
23
		},
24
		keyup: function() {
24
		keyup: function() {
25
			if($(this).val().length > 30) {
26
				$(this).val($(this).val().substr(0, 30));
25
			if($(this).val().length > 50) {
26
				$(this).val($(this).val().substr(0, 50));
27
			}
27
			}
28
		}
28
		}
29
	})
29
	})
485
			imgflase = true;
485
			imgflase = true;
486
		}*/
486
		}*/
487
		if(newstitle==""){
487
		if(newstitle==""){
488
			$("#aboutTit span").text("请输入文章标题");
488
			$.MsgBox.Alert('提示', '请输入文章标题');
489
			return;
489
		}else{
490
		}else{
490
			$("#aboutTit span").text("");
491
			$("#aboutTit span").text("");
491
			titleflase = true;
492
			titleflase = true;

+ 3 - 3
js/articalIssue.js

10
	//校验标题
10
	//校验标题
11
	$("#newstitle").on({
11
	$("#newstitle").on({
12
		focus: function() {
12
		focus: function() {
13
			$(this).prev().find("span").text("30字以内");
13
			$(this).prev().find("span").text("50字以内");
14
		},
14
		},
15
		blur: function() {
15
		blur: function() {
16
			$(this).prev().find("span").text("");
16
			$(this).prev().find("span").text("");
17
		},
17
		},
18
		keyup: function() {
18
		keyup: function() {
19
			if($(this).val().length > 30) {
20
				$(this).val($(this).val().substr(0, 30));
19
			if($(this).val().length > 50) {
20
				$(this).val($(this).val().substr(0, 50));
21
			}
21
			}
22
		}
22
		}
23
	})
23
	})

+ 6 - 4
js/articalModify.js

15
	//校验标题
15
	//校验标题
16
	$("#newstitle").on({
16
	$("#newstitle").on({
17
		focus: function() {
17
		focus: function() {
18
			$(this).prev().find("span").text("30字以内");
18
			$(this).prev().find("span").text("50字以内");
19
		},
19
		},
20
		blur: function() {
20
		blur: function() {
21
			$(this).prev().find("span").text("");
21
			$(this).prev().find("span").text("");
22
		},
22
		},
23
		keyup: function() {
23
		keyup: function() {
24
			if($(this).val().length > 30) {
25
				$(this).val($(this).val().substr(0, 30));
24
			if($(this).val().length > 50) {
25
				$(this).val($(this).val().substr(0, 50));
26
			}
26
			}
27
		}
27
		}
28
	})
28
	})
482
			imgflase = true;
482
			imgflase = true;
483
		}*/
483
		}*/
484
		if(newstitle==""){
484
		if(newstitle==""){
485
			$("#aboutTit span").text("请输入文章标题");
485
			$.MsgBox.Alert('提示', '请输入文章标题')
486
			//$("#aboutTit span").text("请输入文章标题");
487
			return;
486
		}else{
488
		}else{
487
			$("#aboutTit span").text("");
489
			$("#aboutTit span").text("");
488
			titleflase = true;
490
			titleflase = true;