new WorkingPlan()
Contains the working plan functionality. The working plan DOM elements must be same
in every page this class is used.
- Source:
Methods
-
bindEventHandlers()
-
Binds the event handlers for the working plan dom elements.
- Source:
-
editableBreakDay($selector)
-
This method makes editable the break day cells.
Parameters:
Name Type Description $selector
object The jquery selector ready for use. - Source:
-
editableBreakTime($selector)
-
This method makes editable the break time cells.
Parameters:
Name Type Description $selector
object The jquery selector ready for use. - Source:
-
get() → {object}
-
Get the working plan settings.
- Source:
Returns:
Returns the working plan settings object.- Type
- object
-
reset()
-
Reset the current plan back to the company's default working plan.
- Source:
-
setup(workingPlan)
-
Setup the dom elements of a given working plan.
Parameters:
Name Type Description workingPlan
object Contains the working hours and breaks for each day of the week. - Source:
-
timepickers(disabled)
-
Enables or disabled the timepicker functionality from the working plan input text fields.
Parameters:
Name Type Description disabled
bool (OPTIONAL = false) If true then the timepickers will be disabled. - Source: