From 00873c1cb90bd04127d5fecfd4fa450b991214bb Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 29 May 2012 09:04:32 +0000 Subject: [PATCH] Fix issue when editing property sheets with subforms SVN:trunk[2046] --- js/property_field.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/property_field.js b/js/property_field.js index ea574816b..700defdb8 100644 --- a/js/property_field.js +++ b/js/property_field.js @@ -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'); } }); });