소스 검색

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