Browse Source

js: Fermeture de la proposition de tags si clic sur annuler.

bastien 13 years ago
parent
commit
da155b47ee
1 changed files with 2 additions and 4 deletions
  1. 2 4
      web/bundles/muzichcore/js/muzich.js

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

@@ -1798,10 +1798,8 @@ $(document).ready(function(){
1798 1798
   //  TODO TODO TODO
1799 1799
   //    ca en dessous la: TODO neuu
1800 1800
   //
1801
-  $('form.edit_element input.cancel_edit').live('click', function(){
1802
-    var li = $(this).parent('form').parent('li');
1803
-    li.html(elements_edited[li.attr('id')]);
1804
-    delete(elements_edited[li.attr('id')]);
1801
+  $('div.tag_proposition input.cancel').live('click', function(){
1802
+    $(this).parent('form').parent('div').slideUp();
1805 1803
   });
1806 1804
   ///////
1807 1805