Module: edit_shift

Contains the functionalities related to the edit shift page.
Author:
  • Joonas Konki
  • Anu Koskela
  • Mikko Kuhno
  • Henrik Paananen
  • Atte Räty
License:
  • BSD 3-clause, see LICENSE for more details.
Source:

Methods

(static) doc_ready()

This is executed after the HTML page has been loaded. This is a common procedure of all of the client-side modules to initialise the page content.
Source:

(static) fillFields(timeslot)

Sets the information of the time slot to the correct fields.
Parameters:
Name Type Description
timeslot object The selected time slot.
Source:

(static) fillStudentList(reservation, index)

Fills the studentList element with the names of the students related to the reservation. Creates a drop-down menu for each student, which is filled with all the available statuses (present, arrived late etc.).
Parameters:
Name Type Description
reservation object The current time slot.
index number The index of the time slot (not its ID).
Source:

(static) setCurrentWork(timeslots)

Parses the ID parameter from the URL and displays the corresponding time slot's information.
Parameters:
Name Type Description
timeslots object A list of all time slots.
Source: