瀏覽代碼

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

bastien 13 年之前
父節點
當前提交
da155b47ee
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      web/bundles/muzichcore/js/muzich.js

+ 2 - 4
web/bundles/muzichcore/js/muzich.js 查看文件

@@ -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