Limit start / end dates with respect to each other so end must always be after start

This commit is contained in:
Nathan Gray 2016-03-22 14:38:50 +00:00
parent d969525522
commit e5cbe2c57c
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@
</template>
<template id="infolog.index.dates" template="" lang="" group="0" version="1.9.001">
<hbox>
<date id="startdate" label="Start"/>
<date id="enddate" label="End"/>
<date id="startdate" label="Start" onchange="widget.getParent().getWidgetById('enddate').set_min(widget.getValue());"/>
<date id="enddate" label="End" onchange="widget.getParent().getWidgetById('startdate').set_max(widget.getValue());"/>
</hbox>
</template>
<template id="infolog.index.rows" template="" lang="" group="0" version="1.9.005">

View File

@ -5,9 +5,9 @@
<template id="timesheet.index.dates" template="" lang="" group="0" version="1.2.001" >
<hbox>
<description value="Start"/>
<date id="startdate"/>
<date id="startdate" onchange="widget.getParent().getWidgetById('enddate').set_min(widget.getValue());"/>
<description value="End"/>
<date statustext="Leave it empty for a full week" id="enddate"/>
<date statustext="Leave it empty for a full week" id="enddate" onchange="widget.getParent().getWidgetById('startdate').set_max(widget.getValue());"/>
</hbox>
</template>
<template id="timesheet.index.add" template="" lang="" group="0" version="1.7.001">