File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -753,4 +753,8 @@ height:220px;
753
753
width : 220px ;
754
754
755
755
756
+ }
757
+
758
+ .fa-tags {
759
+ margin-right : 5px ;
756
760
}
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ <h2>Select tags to add</h2>
445
445
< div class ="button secondary expanded tag-image-text "> Sports</ div >
446
446
</ div >
447
447
< div class ="column large-4 " style = "background-image: url(images/bussiness.jpg) ">
448
- < div class ="button secondary expanded tag-image-text "> Bussiness </ div >
448
+ < div class ="button secondary expanded tag-image-text "> Business </ div >
449
449
</ div >
450
450
</ div >
451
451
< div class ="row expanded ">
Original file line number Diff line number Diff line change @@ -79,9 +79,19 @@ $(".tags-menu .tag-image-text").click(function(){
79
79
$ ( ".tags-menu button" ) . click ( function ( ) {
80
80
$ ( ".tags-menu .column" ) . each ( function ( ) {
81
81
if ( $ ( this ) . hasClass ( "tag-selected" ) ) {
82
- var tag = $ ( this ) . text ( ) ;
83
- $ ( ".account-details p:contains('Preferred tags') .tag:last-of-type .fa" ) . parent ( ) . after (
82
+ var tag = $ ( this ) . text ( ) . replace ( / \s + / g, " " ) ;
83
+ var add = 1 ;
84
+ $ ( ".account-details .tag" ) . not ( ".tag-reputation" ) . each ( function ( ) {
85
+ var otherTag = $ ( this ) . text ( ) . replace ( / \s + / g, " " ) ;
86
+ var more = " " + otherTag ;
87
+ if ( tag == more ) {
88
+ add = 0 ;
89
+ }
90
+ } ) ;
91
+ if ( add ) {
92
+ $ ( ".account-details p:contains('Preferred tags') .fa-tags" ) . after (
84
93
$ ( "<span class='tag'>" + tag + " <span class='fa fa-times-circle created-tag'></span></span>" ) ) ;
94
+ }
85
95
}
86
96
} ) ;
87
97
closeTagMenu ( ) ;
You can’t perform that action at this time.
0 commit comments