Fix issue when editing property sheets with subforms

SVN:trunk[2046]
This commit is contained in:
Denis Flaven
2012-05-29 09:04:32 +00:00
parent 4b34fd4ecd
commit 00873c1cb9

View File

@@ -163,7 +163,7 @@ $(function()
this.element.closest('form').find('.itop-property-field').each(function()
{
var oWidget = $(this).data('property_field');
if (oWidget)
if (oWidget && oWidget._is_visible())
{
var oVal = oWidget._get_committed_value();
oData[oVal.name] = oVal.value;
@@ -178,6 +178,10 @@ $(function()
{
$('#prop_submit_result').html(data);
});
},
_is_visible: function()
{
return this.element.parent().is(':visible');
}
});
});