BUG 11141 "Javascript doesn't execute when you open a..." SOLVED
- Javascript doesn't execute when you open a dynaform fort the first time - Solved problem, JavaScript execute when you open a dynaform in mode preview * Available from version ProcessMaker-2.0.47 (2.5.1)
This commit is contained in:
@@ -114,6 +114,7 @@
|
||||
sub.sendObj = false;
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
{foreach from=$form->fields item=field key=name}
|
||||
i = myForm.aElements.length;
|
||||
|
||||
@@ -174,8 +175,14 @@
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{literal}}{/literal}
|
||||
{/if}
|
||||
{if $printJavaScript}
|
||||
leimnud.event.add(window,'load',function(){literal}{{/literal}loadForm_{$form->id}('{$form->ajaxServer}');if (typeof(dynaformOnload) !== 'undefined') {literal}{dynaformOnload();}}{/literal});
|
||||
{literal}}{/literal}
|
||||
|
||||
{if (isset($form->jsDesignerPreview))}
|
||||
{$form->jsDesignerPreview}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $printJavaScript}
|
||||
leimnud.event.add(window,'load',function(){literal}{{/literal}loadForm_{$form->id}('{$form->ajaxServer}');if (typeof(dynaformOnload) != 'undefined') {literal}{dynaformOnload();}}{/literal});
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm name="_options" type="grid" width="100%" editRow="0" insertRow="0">
|
||||
<NAME type="text" validate="Field" size="25">
|
||||
<NAME type="text" validate="Field" size="19">
|
||||
<en>Value</en>
|
||||
</NAME>
|
||||
<LABEL type="text" size="25">
|
||||
<LABEL type="text" size="19">
|
||||
<en>Label</en>
|
||||
</LABEL>
|
||||
<OPTGROUP type="checkbox" value="1" falsevalue="0" defaultvalue="0">
|
||||
|
||||
@@ -123,7 +123,7 @@ function gridOptionOptGroupColumn(show, swDelete)
|
||||
lblOptGroup = tableGrid.rows[i].cells[j].innerHTML;
|
||||
}
|
||||
|
||||
tableGrid.rows[i].cells[j].style.width = "20%";
|
||||
tableGrid.rows[i].cells[j].style.width = "25%";
|
||||
tableGrid.rows[i].cells[j].innerHTML = (show == 1)? lblOptGroup : "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user