Detect "backwards" shift when time sheet is edited, alert user

This commit is contained in:
Lance Edgar 2017-03-27 23:25:17 -05:00
parent 27903b5984
commit 04e9752ee1
2 changed files with 17 additions and 4 deletions

View file

@ -37,10 +37,11 @@
{
text: "Save Changes",
click: function(event) {
$(event.target).button('disable').button('option', 'label', "Saving...");
cleanup_editor_input();
update_timetable();
$('#timetable-form').submit();
if (cleanup_editor_input()) {
$(event.target).button('disable').button('option', 'label', "Saving...");
update_timetable();
$('#timetable-form').submit();
}
}
},
{