jack 7 years ago
parent
commit
d8da3fe28a
4 changed files with 17 additions and 14 deletions
  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,14 +11,14 @@ $(function() {
11 11
	//校验标题
12 12
	$("#newstitle").on({
13 13
		focus: function() {
14
			$(this).prev().find("span").text("30字以内");
14
			$(this).prev().find("span").text("50字以内");
15 15
		},
16 16
		blur: function() {
17 17
			$(this).prev().find("span").text("");
18 18
		},
19 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,14 +16,14 @@ $(function() {
16 16
	//校验标题
17 17
	$("#newstitle").on({
18 18
		focus: function() {
19
			$(this).prev().find("span").text("30字以内");
19
			$(this).prev().find("span").text("50字以内");
20 20
		},
21 21
		blur: function() {
22 22
			$(this).prev().find("span").text("");
23 23
		},
24 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,7 +485,8 @@ $(function() {
485 485
			imgflase = true;
486 486
		}*/
487 487
		if(newstitle==""){
488
			$("#aboutTit span").text("请输入文章标题");
488
			$.MsgBox.Alert('提示', '请输入文章标题');
489
			return;
489 490
		}else{
490 491
			$("#aboutTit span").text("");
491 492
			titleflase = true;

+ 3 - 3
js/articalIssue.js

@ -10,14 +10,14 @@ $(function() {
10 10
	//校验标题
11 11
	$("#newstitle").on({
12 12
		focus: function() {
13
			$(this).prev().find("span").text("30字以内");
13
			$(this).prev().find("span").text("50字以内");
14 14
		},
15 15
		blur: function() {
16 16
			$(this).prev().find("span").text("");
17 17
		},
18 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,14 +15,14 @@ $(function() {
15 15
	//校验标题
16 16
	$("#newstitle").on({
17 17
		focus: function() {
18
			$(this).prev().find("span").text("30字以内");
18
			$(this).prev().find("span").text("50字以内");
19 19
		},
20 20
		blur: function() {
21 21
			$(this).prev().find("span").text("");
22 22
		},
23 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,7 +482,9 @@ $(function() {
482 482
			imgflase = true;
483 483
		}*/
484 484
		if(newstitle==""){
485
			$("#aboutTit span").text("请输入文章标题");
485
			$.MsgBox.Alert('提示', '请输入文章标题')
486
			//$("#aboutTit span").text("请输入文章标题");
487
			return;
486 488
		}else{
487 489
			$("#aboutTit span").text("");
488 490
			titleflase = true;