aboutsummaryrefslogtreecommitdiffstats
path: root/timetasker.js
AgeCommit message (Collapse)Author
2017-03-18Fix typo in `populate_select` function nameTeddy Wing
That's what I get for doing this while sick.
2017-03-18Auto-fill date fieldsTeddy Wing
Surround the date event and time entry duplication in a timeout. We need to wait for the select boxes to be filled in before we can duplicate the time entries, so wait a conservative amount of time to ensure the first entry is filled in before duplicating it. The date event listener is also part of this timeout as it fires an event on load without user interaction. We don't care about that initial event. Our date listener will listen for changes to the first time entry's date field and automatically fill in the four duplicated entries with subsequent dates increasing by 1 for each entry. This allows us to select a Monday for the first time entry and have the rest of the week automatically filled in for us.
2017-03-18Duplicate the first time entryTeddy Wing
Create four copies of the first entry to fill out a five day week.
2017-03-18Re-add timeouts around the Task and Work Type select boxesTeddy Wing
Doing so properly fills in these boxes, leaving them time to populate their options asynchronously.
2017-03-18Fire change event on project select boxTeddy Wing
Remove our timeouts for the moment to focus on getting the Module select box populated. Fire a change event on the Project select box using the technique and code described here: http://stackoverflow.com/questions/2856513/how-can-i-trigger-an-onchange-event-manually/2856602#2856602
2017-03-18Fill in the time field correctlyTeddy Wing
2017-03-18Add initial timetasker.jsTeddy Wing
Rough approach at filling in the first row in the form. Trouble is that the "module" select box doesn't get populated until the "project" select box receives click/selection event. Will need to figure out a way around that.