Skip to content

Commit

Permalink
⬆️ Fix b3log#12507
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 13, 2018
1 parent 9fa8897 commit ad982f7
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 33 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: Solo POM.
Version: 3.18.3.18, Sep 6, 2018
Version: 3.18.3.19, Sep 13, 2018
Author: <a href="http://88250.b3log.org">Liang Ding</a>
Author: <a href="http://www.annpeter.cn">Ann Peter</a>
Author: <a href="http://vanessa.b3log.org">Vanessa</a>
Expand Down Expand Up @@ -76,7 +76,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<org.b3log.latke.version>2.4.12</org.b3log.latke.version>
<org.b3log.latke.version>2.4.13</org.b3log.latke.version>

<servlet.version>3.1.0</servlet.version>
<slf4j.version>1.7.5</slf4j.version>
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/docker/local.properties.h2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Description: Solo local environment configurations for test.
# Version: 1.1.3.9, Sep 13, 2016
# Version: 1.1.3.10, Sep 13, 2018
# Author: Liang Ding
#

Expand All @@ -10,15 +10,13 @@ jdbc.username=root
jdbc.password=
jdbc.driver=org.h2.Driver
jdbc.URL=jdbc:h2:/opt/b3log/backup/solo_h2/db
jdbc.pool=h2

#### MySQL runtime ####
# runtimeDatabase=MYSQL
# jdbc.username={{DATABASE_USERNAME}}
# jdbc.password={{DATABASE_PASSWORD}}
# jdbc.driver=com.mysql.jdbc.Driver
# jdbc.URL=jdbc:mysql://{{DATABASE_HOST}}:{{DATABASE_PORT}}/{{DATABASE_NAME}}?useUnicode=yes&characterEncoding=utf8
# jdbc.pool=druid

# The minConnCnt MUST larger or equal to 3
jdbc.minConnCnt=5
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/docker/local.properties.mysql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Description: Solo local environment configurations for test.
# Version: 1.1.3.9, Sep 13, 2016
# Version: 1.1.3.10, Sep 13, 2018
# Author: Liang Ding
#

Expand All @@ -10,15 +10,13 @@
# jdbc.password=
# jdbc.driver=org.h2.Driver
# jdbc.URL=jdbc:h2:~/solo_h2/db
# jdbc.pool=h2

#### MySQL runtime ####
runtimeDatabase=MYSQL
jdbc.username={{DATABASE_USERNAME}}
jdbc.password={{DATABASE_PASSWORD}}
jdbc.driver=com.mysql.jdbc.Driver
jdbc.URL=jdbc:mysql://{{DATABASE_HOST}}:{{DATABASE_PORT}}/{{DATABASE_NAME}}?useUnicode=yes&characterEncoding=utf8
jdbc.pool=druid

# The minConnCnt MUST larger or equal to 3
jdbc.minConnCnt=5
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#
# Description: Solo local environment configurations for test.
# Version: 1.1.3.9, Sep 13, 2016
# Version: 1.1.3.10, Sep 13, 2018
# Author: Liang Ding
#

Expand All @@ -28,15 +28,13 @@ jdbc.username=root
jdbc.password=
jdbc.driver=org.h2.Driver
jdbc.URL=jdbc:h2:~/solo_h2/db
jdbc.pool=h2

#### MySQL runtime ####
#runtimeDatabase=MYSQL
#jdbc.username=root
#jdbc.password=
#jdbc.driver=com.mysql.jdbc.Driver
#jdbc.URL=jdbc:mysql://localhost:3306/solo?useUnicode=yes&characterEncoding=utf8
#jdbc.pool=druid

# The minConnCnt MUST larger or equal to 3
jdbc.minConnCnt=5
Expand Down
34 changes: 17 additions & 17 deletions src/main/webapp/js/admin/latkeAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ $.extend(TablePaginate.prototype, {
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.5.0.1, Apr 5, 2018
* @version 1.5.1.0, Sep 10, 2018
*/
admin.article = {
currentEditorType: '',
Expand Down Expand Up @@ -1151,7 +1151,7 @@ admin.article = {
* @param {String} title 文章标题
*/
del: function (id, fromId, title) {
var isDelete = confirm(Label.confirmRemoveLabel + Label.articleLabel + '"' + title + '"?');
var isDelete = confirm(Label.confirmRemoveLabel + Label.articleLabel + '"' + Util.htmlDecode(title) + '"?');
if (isDelete) {
$("#loadMsg").text(Label.loadingLabel);
$("#tipMsg").text("");
Expand Down Expand Up @@ -1934,7 +1934,7 @@ admin.articleList = {
var topClass = articles[i].articlePutTop ? Label.cancelPutTopLabel : Label.putTopLabel;
articleData[i].expendRow = "<a target='_blank' href='" + latkeConfig.servePath + articles[i].articlePermalink + "'>" + Label.viewLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.article.get('" + articles[i].oId + "', true)\">" + Label.updateLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.article.del('" + articles[i].oId + "', 'article', '" + articles[i].articleTitle + "')\">" + Label.removeLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.article.del('" + articles[i].oId + "', 'article', '" + encodeURIComponent(articles[i].articleTitle) + "')\">" + Label.removeLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.articleList.popTop(this, '" + articles[i].oId + "')\">" + topClass + "</a> \
<a href='javascript:void(0)' onclick=\"admin.comment.open('" + articles[i].oId + "', 'article')\">" + Label.commentLabel + "</a>";
}
Expand Down Expand Up @@ -2011,7 +2011,7 @@ admin.register["article-list"] = {
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.1.5, Apr 5, 2018
* @version 1.0.2.0, Sep 10, 2018
*/

/* draft-list 相关操作 */
Expand Down Expand Up @@ -2085,7 +2085,7 @@ admin.draftList = {
articles[i].articlePermalink + "' target='_blank'>" +
articles[i].articleTitle + "</a><span class='table-tag'>" + articles[i].articleTags + "</span>";
articleData[i].expendRow = "<a href='javascript:void(0)' onclick=\"admin.article.get('" + articles[i].oId + "', false);\">" + Label.updateLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.article.del('" + articles[i].oId + "', 'draft', '" + articles[i].articleTitle + "')\">" + Label.removeLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.article.del('" + articles[i].oId + "', 'draft', '" + encodeURIComponent(articles[i].articleTitle) + "')\">" + Label.removeLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.comment.open('" + articles[i].oId + "', 'draft')\">" + Label.commentLabel + "</a>";
}

Expand Down Expand Up @@ -2126,7 +2126,7 @@ admin.register["draft-list"] = {
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.3.7, Apr 5, 2018
* @version 1.2.4.0, Sep 10, 2018
*/

/* page-list 相关操作 */
Expand Down Expand Up @@ -2274,7 +2274,7 @@ admin.pageList = {
pageData[i].comments = pages[i].pageCommentCount;
pageData[i].expendRow = "<span><a href='" + pages[i].pagePermalink + "' target='_blank'>" + Label.viewLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.pageList.get('" + pages[i].oId + "')\">" + Label.updateLabel + "</a>\
<a href='javascript:void(0)' onclick=\"admin.pageList.del('" + pages[i].oId + "', '" + pages[i].pageTitle + "')\">" + Label.removeLabel + "</a>\
<a href='javascript:void(0)' onclick=\"admin.pageList.del('" + pages[i].oId + "', '" + encodeURIComponent(pages[i].pageTitle) + "')\">" + Label.removeLabel + "</a>\
<a href='javascript:void(0)' onclick=\"admin.comment.open('" + pages[i].oId + "', 'page')\">" + Label.commentLabel + "</a></span>";
}

Expand Down Expand Up @@ -2335,7 +2335,7 @@ admin.pageList = {
* @title 自定义页面标题
*/
del: function (id, title) {
var isDelete = confirm(Label.confirmRemoveLabel + Label.navLabel + '"' + title + '"?');
var isDelete = confirm(Label.confirmRemoveLabel + Label.navLabel + '"' + Util.htmlDecode(title) + '"?');
if (isDelete) {
$("#loadMsg").text(Label.loadingLabel);
$("#tipMsg").text("");
Expand Down Expand Up @@ -2773,7 +2773,7 @@ admin.register.others = {
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.1.5, Apr 5, 2018
* @version 1.1.2.0, Sep 10, 2018
*/

/* link-list 相关操作 */
Expand Down Expand Up @@ -2877,7 +2877,7 @@ admin.linkList = {
linkData[i].linkDescription = links[i].linkDescription;
linkData[i].expendRow = "<span><a href='" + links[i].linkAddress + "' target='_blank'>" + Label.viewLabel + "</a> \
<a href='javascript:void(0)' onclick=\"admin.linkList.get('" + links[i].oId + "')\">" + Label.updateLabel + "</a>\
<a href='javascript:void(0)' onclick=\"admin.linkList.del('" + links[i].oId + "', '" + links[i].linkTitle + "')\">" + Label.removeLabel + "</a></span>";
<a href='javascript:void(0)' onclick=\"admin.linkList.del('" + links[i].oId + "', '" + encodeURIComponent(links[i].linkTitle) + "')\">" + Label.removeLabel + "</a></span>";
}

that.tablePagination.updateTablePagination(linkData, pageNum, result.pagination);
Expand Down Expand Up @@ -3007,7 +3007,7 @@ admin.linkList = {
* @title 链接标题
*/
del: function (id, title) {
var isDelete = confirm(Label.confirmRemoveLabel + Label.permalinkLabel + '"' + title + '"?');
var isDelete = confirm(Label.confirmRemoveLabel + Label.permalinkLabel + '"' + Util.htmlDecode(title) + '"?');
if (isDelete) {
$("#loadMsg").text(Label.loadingLabel);
$("#tipMsg").text("");
Expand Down Expand Up @@ -3605,7 +3605,7 @@ admin.register["plugin-list"] = {
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.1.8, Apr 5, 2018
* @version 1.1.2.0, Sep 10, 2018
*/

/* user-list 相关操作 */
Expand Down Expand Up @@ -3694,7 +3694,7 @@ admin.userList = {
} else {
userData[i].expendRow = "<a href='javascript:void(0)' onclick=\"admin.userList.get('" +
users[i].oId + "', '" + users[i].userRole + "')\">" + Label.updateLabel + "</a>\
<a href='javascript:void(0)' onclick=\"admin.userList.del('" + users[i].oId + "', '" + users[i].userName + "')\">" + Label.removeLabel + "</a> " +
<a href='javascript:void(0)' onclick=\"admin.userList.del('" + users[i].oId + "', '" + encodeURIComponent(users[i].userName) + "')\">" + Label.removeLabel + "</a> " +
"<a href='javascript:void(0)' onclick=\"admin.userList.changeRole('" + users[i].oId + "')\">" + Label.changeRoleLabel + "</a>";
if ("defaultRole" === users[i].userRole) {
userData[i].isAdmin = Label.commonUserLabel;
Expand Down Expand Up @@ -3845,7 +3845,7 @@ admin.userList = {
* @userName 用户名称
*/
del: function(id, userName) {
var isDelete = confirm(Label.confirmRemoveLabel + Label.userLabel + '"' + userName + '"?');
var isDelete = confirm(Label.confirmRemoveLabel + Label.userLabel + '"' + Util.htmlDecode(userName) + '"?');
if (isDelete) {
$("#loadMsg").text(Label.loadingLabel);
$("#tipMsg").text("");
Expand Down Expand Up @@ -3968,7 +3968,7 @@ admin.register["user-list"] = {
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.2.1, Apr 5, 2018
* @version 1.1.3.0, Sep 10, 2018
* @since 2.0.0
*/

Expand Down Expand Up @@ -4100,7 +4100,7 @@ admin.categoryList = {
categoryData[i].expendRow = "<a href='javascript:void(0)' onclick=\"admin.categoryList.get('" +
categories[i].oId + "')\">" + Label.updateLabel + "</a>\
<a href='javascript:void(0)' onclick=\"admin.categoryList.del('" + categories[i].oId + "', '" +
categories[i].categoryTitle + "')\">" + Label.removeLabel + "</a> ";
encodeURIComponent(categories[i].categoryTitle) + "')\">" + Label.removeLabel + "</a> ";

}
that.tablePagination.updateTablePagination(categoryData, pageNum, result.pagination);
Expand Down Expand Up @@ -4226,7 +4226,7 @@ admin.categoryList = {
* @categoryName 分类名称
*/
del: function(id, categoryName) {
var isDelete = confirm(Label.confirmRemoveLabel + Label.categoryLabel + '"' + categoryName + '"?');
var isDelete = confirm(Label.confirmRemoveLabel + Label.categoryLabel + '"' + Util.htmlDecode(categoryName) + '"?');
if (isDelete) {
$("#loadMsg").text(Label.loadingLabel);
$("#tipMsg").text("");
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/js/admin/latkeAdmin.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ad982f7

Please sign in to comment.