created sessions for edit dynaform part for redirecting it back to new bpmn ,. added pagination in triggers

This commit is contained in:
safan
2011-02-22 11:09:23 +00:00
parent 0baa57e49a
commit 033033f169
5 changed files with 75 additions and 39 deletions

View File

@@ -4,6 +4,7 @@
<URL type="phpvariable"/>
<DYN_UID type="phpvariable"/>
<PRO_UID type="phpvariable"/>
<DYN_EDITOR type="phpvariable"/>
<DYNAFORM_NAME type="phpvariable" defaultValue=""/>
<title type="title" enableHTML="1">
<en><![CDATA[<table cellpadding="0" cellspacing="0" width="100%" style="background-color:transparent"> <tr> <td class=\'FormTitle\'>Preview</td> <td align="right"></td> </tr> </table>]]></en>
@@ -11,6 +12,7 @@
<dynaforms_Preview type="private" defaultValue="../dynaforms/dynaforms_Preview"/>
<dynaforms_Ajax type="private" defaultValue="../dynaforms/dynaforms_Ajax"/>
<processMap type="private" defaultValue="../processes/processes_Map"/>
<processBpmnMap type="private" defaultValue="../bpmn/processmap"/>
<SCRIPT type="javascript" replaceTags="1"><![CDATA[
function loadEditor()
@@ -34,11 +36,16 @@ function loadEditor()
mainPanel.events.remove = function()
{
var canClose=dynaformEditor.close();
if (canClose)
var dynEditorType = "@#DYN_EDITOR";
if (canClose && dynEditorType == 'processmap')
{
window.location.href="@G::encryptLink(@#processMap)?PRO_UID=@%PRO_UID";
return true;
}
else if(dynEditorType == 'bpmn')
{
window.location.href="@G::encryptLink(@#processBpmnMap)?PRO_UID=@%PRO_UID";
}
else
{
mainPanel.cancelClose=true;