BUG 9508 I changed the variable name

I changed thevariable name adjustgridswith for adjustgridswidth
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-10-04 15:33:11 -04:00
parent 1d8b2671c1
commit ac920502cf
5 changed files with 11 additions and 13 deletions

View File

@@ -47,7 +47,7 @@ class Form extends XmlForm
var $objectRequiredFields = null;
var $nextstepsave = '';
var $printdynaform = '';
var $adjustgridswith = '0';
var $adjustgridswidth = '0';
public $visual_frontend;

View File

@@ -3297,7 +3297,7 @@ class XmlForm_Field_Grid extends XmlForm_Field
$emptyRow [$key] = array ($emptyValue);
}
if (isset($owner->adjustgridswith) && $owner->adjustgridswith == '1') {
if (isset($owner->adjustgridswidth) && $owner->adjustgridswidth == '1') {
// 400w -> 34s to Firefox
// 400w -> 43s to Chrome

View File

@@ -716,7 +716,7 @@ class dynaformEditorAjax extends dynaformEditor implements iDynaformEditorAjax
//'ENABLETEMPLATE'=> $form->enableTemplate,
'MODE' => $form->mode,
'PRINTDYNAFORM' => $form->printdynaform,
'ADJUSTGRIDSWITH'=> $form->adjustgridswith,
'ADJUSTGRIDSWIDTH' => $form->adjustgridswith,
'NEXTSTEPSAVE' => $form->nextstepsave
);
$tmp['Properties']=$Properties;
@@ -777,8 +777,8 @@ class dynaformEditorAjax extends dynaformEditor implements iDynaformEditorAjax
if (isset($Fields['PRINTDYNAFORM'])) {
$ses2->execute(G::replaceDataField("UPDATE . SET PRINTDYNAFORM = @@PRINTDYNAFORM WHERE XMLNODE_NAME = 'dynaForm' ", $Fields));
}
if (isset($Fields['ADJUSTGRIDSWITH'])) {
$ses2->execute(G::replaceDataField("UPDATE . SET ADJUSTGRIDSWITH = @@ADJUSTGRIDSWITH WHERE XMLNODE_NAME = 'dynaForm' ", $Fields));
if (isset($Fields['ADJUSTGRIDSWIDTH'])) {
$ses2->execute(G::replaceDataField("UPDATE . SET ADJUSTGRIDSWIDTH = @@ADJUSTGRIDSWIDTH WHERE XMLNODE_NAME = 'dynaForm' ", $Fields));
}
return 0;
}

View File

@@ -8,13 +8,12 @@
<th>{$form->label}</th>
</tr>
</table>
<table class="tableGrid" align="center" id="form[{$form->name}]" cellpadding="0" cellspacing="0">
<tr><td valign='top'>
{if ($form->addRow) }
<table class='Record'>
<tr><td></td>
<td> <img id="form[{$form->name}][bullet]" src="/images/bulletButton.gif" />&nbsp;<a id="form[{$form->name}][addLink]" class="GridLink" href="javascript:;" value="Insert" onclick="form_{$form->owner->id}.getElementByName('{$form->name}').addGridRow(); return false;">{$form->NewLabel}</a></td>
<td><img id="form[{$form->name}][bullet]" src="/images/bulletButton.gif" />&nbsp;<a id="form[{$form->name}][addLink]" class="GridLink" href="javascript:;" value="Insert" onclick="form_{$form->owner->id}.getElementByName('{$form->name}').addGridRow(); return false;">{$form->NewLabel}</a></td>
</tr>
</table>
{/if}
@@ -67,7 +66,6 @@
</table>
</td></tr>
</table>
</div>
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
</div>

View File

@@ -58,10 +58,9 @@
<en>Show print dynaform button</en>
</PRINTDYNAFORM>
<ADJUSTGRIDSWITH type="checkbox" falseValue="0" value="0" defaultvalue="0" labelOnRight="0">
<ADJUSTGRIDSWIDTH type="checkbox" falseValue="0" value="0" defaultvalue="0" labelOnRight="0">
<en>Adjust the grid width to the width of the main form</en>
</ADJUSTGRIDSWITH>
</ADJUSTGRIDSWIDTH>
<!--<ENABLETEMPLATE type="checkbox" value="1" defaultvalue="0" labelOnRight="0">
<en>Enable Template</en>
</ENABLETEMPLATE>-->
@@ -87,7 +86,7 @@ if(document.getElementById("form[DYN_TYPE]").value=="grid"){
hideRowById('WIDTH');
hideRowById('NEXTSTEPSAVE');
hideRowById('PRINTDYNAFORM');
hideRowById('ADJUSTGRIDSWITH');
hideRowById('ADJUSTGRIDSWIDTH');
}
function getElementsByClassNameCrossBrowser(searchClass,node,tag) {
@@ -124,6 +123,7 @@ leimnud.event.add(getField('DYN_TYPE'), 'change', function() {
showRowById('WIDTH');
showRowById('NEXTSTEPSAVE');
showRowById('PRINTDYNAFORM');
showRowById('ADJUSTGRIDSWIDTH');
}
});
@@ -150,7 +150,7 @@ function validateGridConversion(proUid,dynUid){
hideRowById('WIDTH');
hideRowById('NEXTSTEPSAVE');
hideRowById('PRINTDYNAFORM');
hideRowById('ADJUSTGRIDSWITH');
hideRowById('ADJUSTGRIDSWIDTH');
} else {
setDropdownSelection("form[DYN_TYPE]" , "xmlform");
msgBox("Grid forms can not contain the following fields: <br>" + response,"alert");