From 28e0ea3e81108e5e013d72a6707f94a873146744 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 15 Jan 2016 15:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E5=B8=A6=E5=B0=8F=E6=95=B0=E7=82=B9=EF=BC=8C=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F=E6=9C=80=E5=A4=A72G?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/juser/user_add.html | 2 +- templates/upload.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/juser/user_add.html b/templates/juser/user_add.html index 2e4619043..621d18107 100644 --- a/templates/juser/user_add.html +++ b/templates/juser/user_add.html @@ -131,7 +131,7 @@ $('#userForm').validator({ timely: 2, theme: "yellow_right_effect", rules: { - check_username: [/^\w{3,20}$/, '大小写字母数字和下划线'], + check_username: [/^[\w.]{3,20}$/, '大小写字母数字和下划线小数点'], type_m: function(element){ return $("#M").is(":checked"); } diff --git a/templates/upload.html b/templates/upload.html index 2a5d712d9..068e59c11 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -99,6 +99,7 @@ autoProcessQueue: false, uploadMultiple: true, parallelUploads: 100, + maxFilesize: 2048, maxFiles: 100, url: '/file/upload/',