[gen] Allow to show transitions on 'view' and/or 'result' layout types.
This commit is contained in:
parent
e0cef5eed5
commit
da1f2699cd
7 changed files with 33 additions and 12 deletions
|
@ -353,14 +353,14 @@ function submitAppyForm(button) {
|
|||
}
|
||||
|
||||
// Function used for triggering a workflow transition
|
||||
function triggerTransition(transitionId, msg) {
|
||||
var theForm = document.getElementById('triggerTransitionForm');
|
||||
function triggerTransition(formId, transitionId, msg) {
|
||||
var theForm = document.getElementById(formId);
|
||||
theForm.workflow_action.value = transitionId;
|
||||
if (!msg) {
|
||||
theForm.submit();
|
||||
}
|
||||
else { // Ask the user to confirm.
|
||||
askConfirm('form', 'triggerTransitionForm', msg, true);
|
||||
askConfirm('form', formId, msg, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue