Auto-save time sheet day editor on Enter press if time field is focused
Hopefully this is a good idea, may have to revisit someday..?
This commit is contained in:
parent
56aff60efd
commit
589a747662
2 changed files with 29 additions and 7 deletions
|
@ -36,13 +36,7 @@
|
|||
buttons: [
|
||||
{
|
||||
text: "Save Changes",
|
||||
click: function(event) {
|
||||
if (cleanup_editor_input()) {
|
||||
$(event.target).button('disable').button('option', 'label', "Saving...");
|
||||
update_timetable();
|
||||
$('#timetable-form').submit();
|
||||
}
|
||||
}
|
||||
click: save_dialog
|
||||
},
|
||||
{
|
||||
text: "Cancel",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue