Browse Source

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

Sevajol Bastien 12 years ago
parent
commit
5d17298ec0
2 changed files with 10 additions and 3 deletions
  1. 2 1
      src/Muzich/CoreBundle/Util/TagLike.php
  2. 8 2
      web/bundles/muzichcore/js/muzich.js

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

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

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

1281
       {
1281
       {
1282
         $('ul#form_add_prop_tags li').remove();
1282
         $('ul#form_add_prop_tags li').remove();
1283
         $('ul#form_add_prop_tags_api').show();
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
         for (tags_index = 0; tags_index < response.tags.length; tags_index++)
1292
         for (tags_index = 0; tags_index < response.tags.length; tags_index++)
1287
         {
1293
         {
1288
           var tag = response.tags[tags_index];
1294
           var tag = response.tags[tags_index];