File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change 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 * 根据当前页码获取列表
You can’t perform that action at this time.
0 commit comments