ソースを参照

Fix issue when editing property sheets with subforms

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2046 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 年 前
コミット
0a6ffe3f9c
1 ファイル変更5 行追加1 行削除
  1. 5 1
      js/property_field.js

+ 5 - 1
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');
 		}
 	});
 });