diff --git a/symposion/templates/schedule/schedule_edit.html b/symposion/templates/schedule/schedule_edit.html index b53355064a2bd9e9dc90d27e214ddcd2f4ce1303..9b1ab864c51ab89b3dbb27e606e9434d3407be8c 100644 --- a/symposion/templates/schedule/schedule_edit.html +++ b/symposion/templates/schedule/schedule_edit.html @@ -18,7 +18,7 @@

Schedule Edit

- + {% for timetable in days %}

{{ timetable.day.date }}

{% include "schedule/_edit_grid.html" %} @@ -45,5 +45,19 @@ e.preventDefault(); }); }); + $(function() { + //submit event handler + $("form#schedule-builder :submit").click(function(e) { + var name = this.name; + if(name == 'delete') { + if (!confirm("Are you sure you want to delete the schedule?")) + { + e.preventDefault(); + return; + } + } + }); + }); + {% endblock %}