소스 검색

字数检查

懒得勤快 4 년 전
부모
커밋
8d1bfd7547

+ 2 - 2
src/Masuit.MyBlogs.Core/Views/Post/PushMerge.cshtml

@@ -169,10 +169,10 @@
                 loadingDone();
                 return;
             }
-            if (ue.getContent().length < 200 || ue.getContent().length > 1000000) {
+            if (ue.getContent().length < 20 || ue.getContent().length > 1000000) {
                 window.notie.alert({
                     type: 3,
-                    text: '文章内容过短或者超长的,字数200-1000000字!',
+                    text: '文章内容过短或者超长的,字数20-1000000字!',
                     time: 4
                 });
                 loadingDone();

+ 2 - 2
src/Masuit.MyBlogs.Core/wwwroot/Scripts/publish/publish.js

@@ -57,10 +57,10 @@
             loadingDone();
             return;
         }
-        if (ue.getContent().length < 200 || ue.getContent().length > 1000000) {
+        if (ue.getContent().length < 20 || ue.getContent().length > 1000000) {
 	        window.notie.alert({
 		        type: 3,
-                text: '文章内容过短或者超长的,我都认为你是在制造垃圾!',
+                text: '文章内容过短或者超长的,请修改后再提交!',
 		        time: 4
 	        });
             loadingDone();

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/Masuit.MyBlogs.Core/wwwroot/Scripts/publish/publish.min.js


+ 2 - 2
src/Masuit.MyBlogs.Core/wwwroot/ng-views/controllers/post.js

@@ -576,10 +576,10 @@ myApp.controller("postedit", ["$scope", "$http", "$location", "$timeout", functi
 			
 			return;
 		}
-		if (post.Content.length < 200 || post.Content.length > 1000000) {
+		if (post.Content.length < 20 || post.Content.length > 1000000) {
 			window.notie.alert({
 				type: 3,
-				text: '文章内容过短或者超长的,我都认为你是在制造垃圾!',
+				text: '文章内容过短或者超长,请修改后再提交!',
 				time: 4
 			});
 			

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/Masuit.MyBlogs.Core/wwwroot/ng-views/controllers/post.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.