Editor - Schedule lapse

This modal is used to manipulate and give values to the fields of the lapses.

Main Models

  • lapse.open.hour
  • lapse.open.minute
  • lapse.close.hour
  • lapse.close.minute
  • hours: contains in an array the possible values for the hours
    -minutes: contains in an array the possible values for the minutes
  • timeCheck: compare that the time of closes is greater than that of open
  • timeCheck.hour:
  • timeCheck.minute:

Utility Functions

  • hide(): close the modal
  • checkTime(): function that prevents invalid lapses
  • add(): if it's a new lapse
  • save(): to save the changes