Browse Source

bugfix: javascript: il manquant '_' dans le code suivant le click sur un tag. du coup l'id était mal récupéré.

bastien 12 years ago
parent
commit
90ef997c6d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      web/bundles/muzichcore/js/muzich.js

+ 3 - 3
web/bundles/muzichcore/js/muzich.js View File

@@ -292,8 +292,8 @@ $(document).ready(function(){
292 292
     var id;
293 293
     if ($('ul#favorite_tags').length)
294 294
     {
295
-      id = str_replace('element_tag', '', $(this).attr('id'));
296
-      var link = $('ul#favorite_tags li a[href="#'+id+'"]');
295
+      id = str_replace('element_tag_', '', $(this).attr('id'));
296
+      var link = $('a#filtering_tag_'+id);
297 297
       list_tag_clicked(link, true);
298 298
     }
299 299
     
@@ -302,7 +302,7 @@ $(document).ready(function(){
302 302
       $('img.elements_more_loader').show();
303 303
       $('ul.elements').html('');
304 304
       var form = $('form[name="search"]');
305
-      id = str_replace('element_tag', '', $(this).attr('id'));
305
+      id = str_replace('element_tag_', '', $(this).attr('id'));
306 306
       remove_tags('search');
307 307
       var inputTag = $("div#tags_prompt_search input.form-default-value-processed");
308 308
       $('input#tags_selected_tag_search').val(id);