diff --git a/_dt/js/event.js b/_dt/js/event.js index f59fa9c..8bdd42a 100644 --- a/_dt/js/event.js +++ b/_dt/js/event.js @@ -18,7 +18,7 @@ $(document).ready(function() { $('.select-asistentes').select2(); - $('#delete-href').on('click', function(evt) { + $('.delete-eve').on('click', function(evt) { evt.preventDefault(); var data = { 'id': $('.event-content').data('id') @@ -28,6 +28,7 @@ $(document).ready(function() { type: 'POST', url: '/eliminarEvento', data: data, + type: 'json', success: function(resp) { if (resp.response === true) { window.location = "/miseventos"; @@ -55,8 +56,12 @@ $(document).ready(function() { type: 'POST', url: '/iAsistente', data: data, + dataType: 'json', success: function(resp) { + var as = '