diff --git a/views/submission/templates/submission/shared/mark_list.html b/views/submission/templates/submission/shared/mark_list.html index 827aeb65986554d550ff89b03ea2f4ec7bab24f5..9166b537b2c4e0fead8076ae7f3b31bb9bac8019 100644 --- a/views/submission/templates/submission/shared/mark_list.html +++ b/views/submission/templates/submission/shared/mark_list.html @@ -68,6 +68,47 @@ {% endif %} {% endfor %} {% endfor %} + + var delete_mark = function( file_uuid ) + { + $( "
" ) + .attr( "id", "delete_confirmation" ) + .text( "Do you really want to delete this mark?" ) + .dialog( { + title: "Confirm mark deletion", + modal: true, + buttons: { + "OK": function() + { + $.ajax( { + {% if admin %} + url: "{{ url_for( 'submission.admin_submission_mark_delete', submission_id = submission_id, mark_id = '