delegate action: set date, start to current, clear other fields
This commit is contained in:
parent
635a4e2568
commit
f12361daa4
1 changed files with 13 additions and 12 deletions
|
@ -609,7 +609,7 @@ class CreateWorkItemForm(ObjectForm, BaseTrackView):
|
|||
def onChangeAction(self):
|
||||
js = [self.actionJs['setDefault'],
|
||||
self.actionJs['showIf'],
|
||||
self.actionJs['setIfStart']]
|
||||
self.actionJs['setIfSD']]
|
||||
if self.state in ('done',):
|
||||
js.append(self.actionJs['setIfWF'])
|
||||
return ';\n'.join(js)
|
||||
|
@ -618,8 +618,9 @@ class CreateWorkItemForm(ObjectForm, BaseTrackView):
|
|||
showIf="""
|
||||
showIfIn(this, [['move', 'target_task'],
|
||||
['delegate', 'target_party']])""",
|
||||
setIfStart="""
|
||||
setIf(this, 'start', [['start_date', defValue],
|
||||
setIfSD="""
|
||||
setIfN(this, ['start', 'delegate'], [
|
||||
['start_date', defValue],
|
||||
['start_time', defValue],
|
||||
['end_time', null],
|
||||
['duration', ''],
|
||||
|
|
Loading…
Add table
Reference in a new issue