Commit ce93fbfa authored by Liang's avatar Liang

🚧 #12256

parent 522c87df
...@@ -661,6 +661,14 @@ a[class*=" icon-"]:hover { ...@@ -661,6 +661,14 @@ a[class*=" icon-"]:hover {
box-shadow: none; box-shadow: none;
border-color: #1fb5ad; border-color: #1fb5ad;
} }
table.form label {
margin: 10px 0 0 0;
}
table.form th {
vertical-align: initial;
}
/* end form */ /* end form */
/* start module */ /* start module */
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,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.0.1.1, Apr 9, 2017 * @version 1.1.1.1, Apr 10, 2017
* @since 2.0.0 * @since 2.0.0
*/ */
...@@ -64,6 +64,37 @@ admin.categoryList = { ...@@ -64,6 +64,37 @@ admin.categoryList = {
"modal": true, "modal": true,
"hideFooter": true "hideFooter": true
}); });
// For tag auto-completion
$.ajax({// Gets all tags
url: latkeConfig.servePath + "/console/tags",
type: "GET",
cache: false,
success: function (result, textStatus) {
$("#tipMsg").text(result.msg);
if (!result.sc) {
$("#loadMsg").text("");
return;
}
if (0 >= result.tags.length) {
return;
}
var tags = [];
for (var i = 0; i < result.tags.length; i++) {
tags.push(result.tags[i].tagTitle);
}
$("#categoryTags").completed({
height: 160,
buttonText: Label.selectLabel,
data: tags
}).width($("#categoryTags").parent().width() - 68);
$("#loadMsg").text("");
}
});
}, },
/* /*
* 根据当前页码获取列表 * 根据当前页码获取列表
......
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