Skip to content

Commit ce93fbf

Browse files
committed
1 parent 522c87d commit ce93fbf

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

‎src/main/webapp/css/default-admin.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,14 @@ a[class*=" icon-"]:hover {
661661
box-shadow: none;
662662
border-color: #1fb5ad;
663663
}
664+
665+
table.form label {
666+
margin: 10px 0 0 0;
667+
}
668+
669+
table.form th {
670+
vertical-align: initial;
671+
}
664672
/* end form */
665673

666674
/* start module */

‎src/main/webapp/js/admin/categoryList.js‎

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
2020
* @author <a href="http://88250.b3log.org">Liang Ding</a>
21-
* @version 1.0.1.1, Apr 9, 2017
21+
* @version 1.1.1.1, Apr 10, 2017
2222
* @since 2.0.0
2323
*/
2424

@@ -64,6 +64,37 @@ admin.categoryList = {
6464
"modal": true,
6565
"hideFooter": true
6666
});
67+
68+
// For tag auto-completion
69+
$.ajax({// Gets all tags
70+
url: latkeConfig.servePath + "/console/tags",
71+
type: "GET",
72+
cache: false,
73+
success: function (result, textStatus) {
74+
$("#tipMsg").text(result.msg);
75+
if (!result.sc) {
76+
$("#loadMsg").text("");
77+
return;
78+
}
79+
80+
if (0 >= result.tags.length) {
81+
return;
82+
}
83+
84+
var tags = [];
85+
for (var i = 0; i < result.tags.length; i++) {
86+
tags.push(result.tags[i].tagTitle);
87+
}
88+
89+
$("#categoryTags").completed({
90+
height: 160,
91+
buttonText: Label.selectLabel,
92+
data: tags
93+
}).width($("#categoryTags").parent().width() - 68);
94+
95+
$("#loadMsg").text("");
96+
}
97+
});
6798
},
6899
/*
69100
* 根据当前页码获取列表

0 commit comments

Comments
 (0)