diff -r 7a5de13173b1 -r e3d551eda5a6 integration/js/projet.js --- a/integration/js/projet.js Thu May 16 13:08:20 2013 +0200 +++ b/integration/js/projet.js Thu May 16 14:00:50 2013 +0200 @@ -1,4 +1,4 @@ -(function(){ +$(function(){ $('body').on('click focus', 'input[readonly]', function(e){ $(this).select(); @@ -12,23 +12,4 @@ alert("Copied text to clipboard: " + args.text ); }); -//confirmation suppression - $(document).on('click','.btn-delete', function(e){ - e.preventDefault(); - var titleMedia = $(this).attr('data-title'), - textModal = $('

Êtes-vous sûr de vouloir supprimer '+titleMedia+' ?

'), - eltDelete = $(this).attr('href'); - - $("#modal-confirm #btn-delete-modal").attr('data-id-elt-delete', eltDelete); - $("#modal-confirm .modal-body").empty().append(textModal); - $("#modal-confirm").modal('show'); - }); - - $("#modal-confirm").on('click', '#btn-delete-modal', function(e){ - e.preventDefault(); - var idEltDelete = $(this).attr('data-id-elt-delete'); - $(idEltDelete).remove(); - $("#modal-confirm").modal('hide'); - }); - -})(jQuery); \ No newline at end of file +}); \ No newline at end of file