Added viewer.js
Split overtime.js into two files
- overtime.js with overtime and bonus classes
- viewer.js with viewer class and init()
- refractered some overtime variables as well
Finally updates this thing
A few changes to bonus div
- cahnged how user add bonuses
- added predfined bonuses div
changed invis class
- added !important to display: none
Updated bonus calculations and bonus class
- changed getEffectiveBonus() to work on a week bases
- also added calcAmount() to bonus class to calculate a new amount for bonuses which use predfined time periods
Changes to accomadate new UI
- updated bonus elements event handlers
- updated resetView and resetData to work with
bonus as pay type and made some changes to the parameters of these functions
- updated getValue() to work with select elements
- added bonus elements event handlers
- added bonus elements to Div and Input
Hot Fix, btn_add_bonus click handler removes the values in the bonus inputs, without a value in these required inputs you cant submit the form.
Created First Release
...well actually this would be a pre pre realese