Commit d96ecc2f authored by Liang Ding's avatar Liang Ding

Merge branch '0.5.5' of https://github.com/b3log/b3log-solo into 0.5.5

parents 5190acce 85f237c9
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
"commentEmailLabel": "${commentEmailLabel}", "commentEmailLabel": "${commentEmailLabel}",
"administratorLabel": "${administratorLabel}", "administratorLabel": "${administratorLabel}",
"duplicatedEmailLabel": "${duplicatedEmailLabel}", "duplicatedEmailLabel": "${duplicatedEmailLabel}",
"nameEmptyLabel": "${nameEmptyLabel}",
"mailInvalidLabel": "${mailInvalidLabel}", "mailInvalidLabel": "${mailInvalidLabel}",
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}", "mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
"noSettingLabel": "${noSettingLabel}", "noSettingLabel": "${noSettingLabel}",
...@@ -109,7 +108,8 @@ ...@@ -109,7 +108,8 @@
"windowSizeLabel": "${windowSizeLabel}", "windowSizeLabel": "${windowSizeLabel}",
"randomArticlesDisplayCntLabel": "${randomArticlesDisplayCntLabel}", "randomArticlesDisplayCntLabel": "${randomArticlesDisplayCntLabel}",
"relevantArticlesDisplayCntLabel": "${relevantArticlesDisplayCntLabel}", "relevantArticlesDisplayCntLabel": "${relevantArticlesDisplayCntLabel}",
"externalRelevantArticlesDisplayCntLabel": "${externalRelevantArticlesDisplayCntLabel}" "externalRelevantArticlesDisplayCntLabel": "${externalRelevantArticlesDisplayCntLabel}",
"nameTooLongLabel": "${nameTooLongLabel}"
}; };
admin.init(); admin.init();
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* index for admin * index for admin
* *
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a> * @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @version 1.0.1.9, Jun 19, 2012 * @version 1.0.2.0, Aug 30, 2012
*/ */
var Admin = function () { var Admin = function () {
...@@ -27,7 +27,7 @@ var Admin = function () { ...@@ -27,7 +27,7 @@ var Admin = function () {
'#user-list', '#plugin-list', '#others']; '#user-list', '#plugin-list', '#others'];
// 多用户时,一般用户不能使用的功能 // 多用户时,一般用户不能使用的功能
this.adTools = ['link-list', 'preference', 'file-list', 'page-list', this.adTools = ['link-list', 'preference', 'file-list', 'page-list',
'user-list', 'plugin-list']; 'user-list', 'plugin-list', 'others'];
}; };
$.extend(Admin.prototype, { $.extend(Admin.prototype, {
...@@ -221,13 +221,6 @@ $.extend(Admin.prototype, { ...@@ -221,13 +221,6 @@ $.extend(Admin.prototype, {
$(it).find(".ico-arrow-up")[0].className = "ico-arrow-down"; $(it).find(".ico-arrow-up")[0].className = "ico-arrow-down";
} }
}); });
/*if (subNav.className === "none") {
$(it).find(".ico-arrow-down")[0].className = "ico-arrow-up";
subNav.className = "collapsed";
} else {
$(it).find(".ico-arrow-up")[0].className = "ico-arrow-down";
subNav.className = "none";
}*/
}, },
/* /*
...@@ -239,7 +232,6 @@ $.extend(Admin.prototype, { ...@@ -239,7 +232,6 @@ $.extend(Admin.prototype, {
for (var i = 0; i < this.adTools.length; i++) { for (var i = 0; i < this.adTools.length; i++) {
$("#tabs").tabs("remove", this.adTools[i]); $("#tabs").tabs("remove", this.adTools[i]);
} }
$("#tabs>ul>li").last().remove();
} else { } else {
// 当前 tab 属于 Tools 时,设其展开 // 当前 tab 属于 Tools 时,设其展开
for (var j = 0; j < this.tools.length; j++) { for (var j = 0; j < this.tools.length; j++) {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* *
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a> * @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a> * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.1.2, May 3, 2012 * @version 1.0.1.3, Aug 30, 2012
*/ */
/* user-list 相关操作 */ /* user-list 相关操作 */
...@@ -289,9 +289,9 @@ admin.userList = { ...@@ -289,9 +289,9 @@ admin.userList = {
if (!status) { if (!status) {
status = ""; status = "";
} }
var userName = $("#userName" + status).val().replace(/(^\s*)|(\s*$)/g, "");
if ($("#userName" + status).val().replace(/\s/g, "") === "") { if (2 > userName.length || userName.length > 20) {
$("#tipMsg").text(Label.nameEmptyLabel); $("#tipMsg").text(Label.nameTooLongLabel);
$("#userName" + status).focus(); $("#userName" + status).focus();
}else if ($("#userEmail" + status).val().replace(/\s/g, "") === "") { }else if ($("#userEmail" + status).val().replace(/\s/g, "") === "") {
$("#tipMsg").text(Label.mailCannotEmptyLabel); $("#tipMsg").text(Label.mailCannotEmptyLabel);
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# #
# Description: Mobile skin language configurations(en_US). # Description: Mobile skin language configurations(en_US).
# Version: 1.0.0.2, Feb 25, 2012 # Version: 1.0.0.3, Aug 30, 2012
# Author: Liang Ding # Author: Liang Ding
# Author: Liyuan Li # Author: Liyuan Li
# #
...@@ -246,7 +246,6 @@ noCommentLabel=No Comment ...@@ -246,7 +246,6 @@ noCommentLabel=No Comment
captchaErrorLabel=Captcha Error captchaErrorLabel=Captcha Error
inputErrorLabel=Input Error! inputErrorLabel=Input Error!
gotoLabel=Go gotoLabel=Go
nameEmptyLabel=Username is empty
passwordEmptyLabel=Password is empty passwordEmptyLabel=Password is empty
blogEmptyLabel=Blogging service is empty blogEmptyLabel=Blogging service is empty
blogArticleEmptyLabel=Please select articles blogArticleEmptyLabel=Please select articles
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# #
# Description: Mobile skin language configurations(zh_CN). # Description: Mobile skin language configurations(zh_CN).
# Version: 1.0.0.2, Feb 25, 2012 # Version: 1.0.0.3, Aug 30, 2012
# Author: Liang Ding # Author: Liang Ding
# Author: Liyuan Li # Author: Liyuan Li
# #
...@@ -252,7 +252,6 @@ noCommentLabel=\u6682\u65e0\u8bc4\u8bba ...@@ -252,7 +252,6 @@ noCommentLabel=\u6682\u65e0\u8bc4\u8bba
captchaErrorLabel=\u9a8c\u8bc1\u7801\u9519\u8bef captchaErrorLabel=\u9a8c\u8bc1\u7801\u9519\u8bef
inputErrorLabel=\u8f93\u5165\u9519\u8bef\uff01 inputErrorLabel=\u8f93\u5165\u9519\u8bef\uff01
gotoLabel=\u8df3\u8f6c gotoLabel=\u8df3\u8f6c
nameEmptyLabel=\u59d3\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff01
passwordEmptyLabel=\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01 passwordEmptyLabel=\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01
blogEmptyLabel=\u8bf7\u9009\u62e9\u535a\u5ba2\u670d\u52a1\uff01 blogEmptyLabel=\u8bf7\u9009\u62e9\u535a\u5ba2\u670d\u52a1\uff01
blogArticleEmptyLabel=\u8bf7\u9009\u62e9\u9700\u8981\u5bfc\u5165\u7684\u6587\u7ae0 blogArticleEmptyLabel=\u8bf7\u9009\u62e9\u9700\u8981\u5bfc\u5165\u7684\u6587\u7ae0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment