Browse Source

Merge pull request #685 from Romain-Geissler/fix-double-delete-confirmation-2.0

Fix double delete confirmation 2.0
Thomas 13 years ago
parent
commit
4fea688885
1 changed files with 0 additions and 3 deletions
  1. 0 3
      Resources/views/CRUD/base_list.html.twig

+ 0 - 3
Resources/views/CRUD/base_list.html.twig

@@ -137,9 +137,6 @@ file that was distributed with this source code.
                        $('#list_batch_checkbox').click(function(){
                            $(this).closest('table').find("td input[type='checkbox']").attr('checked', $(this).is(':checked')).parent().parent().toggleClass('sonata-ba-list-row-selected', $(this).is(':checked'));
                        });
-                       $('.delete_link').click(function(e){
-                          if (!confirm('{% trans from 'SonataAdminBundle' %}confirm_msg{% endtrans %}')) e.preventDefault();
-                       });
                        $("td.sonata-ba-list-field-batch input[type='checkbox']").change(function(){
                            $(this).parent().parent().toggleClass('sonata-ba-list-row-selected', $(this).is(':checked'));
                        });