
Runner.pages.PageSettings.addPageEvent('allocation.',Runner.pages.constants.PAGE_ADD,"afterPageReady",function(pageObj,proxy,pageid,inlineRow,inlineObject,row){var ctrlthis_allocation=Runner.getControl(pageid,'this_allocation');var ctrlat_start=Runner.getControl(pageid,'at_start');var ctrlat_end=Runner.getControl(pageid,'at_end');var ctrlcomment=Runner.getControl(pageid,'comment');function atend(){ctrlat_end.setValue((+ctrlat_start.getValue())-(+ctrlthis_allocation.getValue()));};ctrlcomment.on('keyup',atend);;});Runner.pages.PageSettings.addPageEvent('allocation.',Runner.pages.constants.PAGE_EDIT,"afterPageReady",function(pageObj,proxy,pageid,inlineRow,inlineObject,row){var ctrlthis_allocation=Runner.getControl(pageid,'this_allocation');var ctrlat_start=Runner.getControl(pageid,'at_start');var ctrlat_end=Runner.getControl(pageid,'at_end');var ctrlcomment=Runner.getControl(pageid,'comment');function atend(){ctrlat_end.setValue((+ctrlat_start.getValue())-(+ctrlthis_allocation.getValue()));};ctrlcomment.on('keyup',atend);;});