diff --git a/uber/templates/schedule_reports/index.html b/uber/templates/schedule_reports/index.html index 69c11e7da..454f8eb00 100644 --- a/uber/templates/schedule_reports/index.html +++ b/uber/templates/schedule_reports/index.html @@ -43,9 +43,9 @@ }); } - let markItemSynced = function(event){ - let form = $(this); - event.preventDefault(); + let markItemSynced = function(){ + let form = $(this).closest('form'); + $.ajax({ method: 'POST', url: 'mark_item_synced', @@ -81,7 +81,10 @@ } $().ready(function () { - $(".sync-item").submit(markItemSynced); + $('#schedule-table').on('click', '.sync-item', markItemSynced); + {% for model, label in c.GUIDEBOOK_MODELS %} + $('#{{ model }}-table').on('click', '.sync-item', markItemSynced); + {% endfor %} }); {% set now = now() %} @@ -158,7 +161,7 @@
Items in italics has been changed since the last sync.
-Name | @@ -203,13 +206,13 @@
---|