Commit 33877de8 authored by Liang Ding's avatar Liang Ding

🎨 Fix #12610

parent c6a7cb12
...@@ -73,12 +73,12 @@ ...@@ -73,12 +73,12 @@
</span> </span>
<div class="right article-commentable__panel"> <div class="right article-commentable__panel">
<label for="articleCommentable" style="margin: 13px 0 0 0">${allowComment1Label}</label> <label for="articleCommentable" style="margin: 13px 0 0 0">${allowComment1Label}</label>
<input type="checkbox" id="articleCommentable" checked="checked" /> <input type="checkbox" id="articleCommentable" checked />
<span id="postToCommunityPanel" class="none"> <span id="postToCommunityPanel">
<label for="postToCommunity"> <label for="postToCommunity">
<a class="no-underline" href="https://hacpai.com/article/1440573175609" target="_blank">${postToCommunityLabel}</a> <a class="no-underline" href="https://hacpai.com/article/1546941897596" target="_blank">${postToCommunityLabel}</a>
</label> </label>
<input id="postToCommunity" type="checkbox" checked="checked"/> <input id="postToCommunity" type="checkbox" />
</span> </span>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.5.1.1, Dec 10, 2018 * @version 1.5.1.2, Jan 13, 2019
*/ */
admin.article = { admin.article = {
currentEditorType: '', currentEditorType: '',
...@@ -343,15 +343,13 @@ admin.article = { ...@@ -343,15 +343,13 @@ admin.article = {
if (this.status.articleHadBeenPublished) { if (this.status.articleHadBeenPublished) {
$("#postToCommunityPanel").hide(); $("#postToCommunityPanel").hide();
} else { } else {
// 1.0.0 开始默认会发布到社区 $("#postToCommunityPanel").show();
// $("#postToCommunityPanel").show();
} }
} else { } else {
$("#submitArticle").show(); $("#submitArticle").show();
$("#unSubmitArticle").hide(); $("#unSubmitArticle").hide();
$("#saveArticle").show(); $("#saveArticle").show();
// 1.0.0 开始默认会发布到社区 $("#postToCommunityPanel").show();
// $("#postToCommunityPanel").show();
} }
$("#postToCommunity").attr("checked", "checked"); $("#postToCommunity").attr("checked", "checked");
......
...@@ -1055,7 +1055,7 @@ $.extend(TablePaginate.prototype, { ...@@ -1055,7 +1055,7 @@ $.extend(TablePaginate.prototype, {
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.5.1.1, Dec 10, 2018 * @version 1.5.1.2, Jan 13, 2019
*/ */
admin.article = { admin.article = {
currentEditorType: '', currentEditorType: '',
...@@ -1378,15 +1378,13 @@ admin.article = { ...@@ -1378,15 +1378,13 @@ admin.article = {
if (this.status.articleHadBeenPublished) { if (this.status.articleHadBeenPublished) {
$("#postToCommunityPanel").hide(); $("#postToCommunityPanel").hide();
} else { } else {
// 1.0.0 开始默认会发布到社区 $("#postToCommunityPanel").show();
// $("#postToCommunityPanel").show();
} }
} else { } else {
$("#submitArticle").show(); $("#submitArticle").show();
$("#unSubmitArticle").hide(); $("#unSubmitArticle").hide();
$("#saveArticle").show(); $("#saveArticle").show();
// 1.0.0 开始默认会发布到社区 $("#postToCommunityPanel").show();
// $("#postToCommunityPanel").show();
} }
$("#postToCommunity").attr("checked", "checked"); $("#postToCommunity").attr("checked", "checked");
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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