Sfoglia il codice sorgente

Evolution #419: Récupération de tags soundCloud

Sevajol Bastien 12 anni fa
parent
commit
5d17298ec0

+ 2 - 1
src/Muzich/CoreBundle/Util/TagLike.php Vedi File

@@ -97,7 +97,8 @@ class TagLike
97 97
       str_replace(',', ' ', $search),
98 98
       str_replace(', ', ' ', $search),
99 99
       str_replace(',', '-', $search),
100
-      str_replace(', ', '-', $search)
100
+      str_replace(', ', '-', $search),
101
+      str_replace(' & ', ' AND ', $search)
101 102
     ));
102 103
     
103 104
     return $words;

+ 8 - 2
web/bundles/muzichcore/js/muzich.js Vedi File

@@ -1281,8 +1281,14 @@ $(document).ready(function(){
1281 1281
       {
1282 1282
         $('ul#form_add_prop_tags li').remove();
1283 1283
         $('ul#form_add_prop_tags_api').show();
1284
-        $('p#form_add_prop_tags_text').show();
1285
-
1284
+        $('p#form_add_prop_tags_text').hide();
1285
+        
1286
+        if (response.tags.length)
1287
+        {
1288
+          $('p#form_add_prop_tags_text').show();
1289
+        }
1290
+        
1291
+        $('ul#form_add_prop_tags_api li').remove();
1286 1292
         for (tags_index = 0; tags_index < response.tags.length; tags_index++)
1287 1293
         {
1288 1294
           var tag = response.tags[tags_index];