campos con valor por defecto en grillas funcionando
This commit is contained in:
@@ -179,9 +179,9 @@ var G_Grid = function(oForm, sGridName) {
|
||||
attributDefaultValue=attributes.defaultvalue;
|
||||
} else {
|
||||
scriptTags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('script');
|
||||
attributes = elementAttributesNS(aObjects[0]);
|
||||
if(attributes.value != undefined)
|
||||
attributDefaultValue=attributes.value;
|
||||
attributes = elementAttributesNS(aObjects[0],'pm');
|
||||
if(attributes.defaultvalue != undefined)
|
||||
attributDefaultValue=attributes.defaultvalue;
|
||||
else
|
||||
attributDefaultValue='';
|
||||
}
|
||||
|
||||
@@ -3142,13 +3142,13 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
|
||||
$sizeend = $maskleng + 2;
|
||||
}
|
||||
if ( $this->editable != "0") {
|
||||
$html = '<input id="'.$pID.'" name="'.$pID.'" pm:mask="'.$mask.'" pm:start="'.$startDate.'" pm:end="'.$endDate.'" pm:time="'.$Time.'" '.$onchange.' class="module_app_input___gray" size="'.$sizeend.'" value="'.$value.'"/>'
|
||||
$html = '<input id="'.$pID.'" name="'.$pID.'" pm:mask="'.$mask.'" pm:start="'.$startDate.'" pm:end="'.$endDate.'" pm:time="'.$Time.'" '.$onchange.' class="module_app_input___gray" size="'.$sizeend.'" value="'.$value.'" pm:defaultvalue="'.$value.'"/>'
|
||||
. '<a onclick="removeValue(\''.$pID.'\'); return false;"/> '
|
||||
. '<img src="/images/icons_silk/calendar_x_button.png" style="position:relative;left:-17px;top:5px;"/></a>'
|
||||
. '<a id="'.$pID.'[btn]"><img src="/images/pmdateicon.png" border="0" width="12" height="12" style="position:relative;left:-17px;top:0px;"/></a>'
|
||||
. '<script>datePicker4("", \''.$pID.'\', \''.$mask.'\', \''.$startDate.'\', \''.$endDate.'\','.$Time.')</script>';
|
||||
} else {
|
||||
$html = '<input id="'.$pID.'" name="'.$pID.'" pm:mask="'.$mask.'" pm:start="'.$startDate.'" pm:end="'.$endDate.'" pm:time="'.$Time.'" '.$onchange.' class="module_app_input___gray" size="'.$sizeend.'" value="'.$value.'" readonly="readonly"/>'
|
||||
$html = '<input id="'.$pID.'" name="'.$pID.'" pm:mask="'.$mask.'" pm:start="'.$startDate.'" pm:end="'.$endDate.'" pm:time="'.$Time.'" '.$onchange.' class="module_app_input___gray" size="'.$sizeend.'" value="'.$value.'"pm:defaultvalue="'.$value.'" readonly="readonly"/>'
|
||||
. '<a onclick="removeValue(\''.$pID.'\'); return false;"/> '
|
||||
. '<img src="/images/icons_silk/calendar_x_button.png" style="position:relative;left:-17px;top:5px;"/></a>'
|
||||
. '<a id="'.$pID.'[btn]"><img src="/images/pmdateicon.png" border="0" width="12" height="12" style="position:relative;left:-17px;top:0px;"/></a>'
|
||||
|
||||
Reference in New Issue
Block a user