ソースを参照

Properly read radio button values inside a form.

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

+ 8 - 0
js/property_field.js

@@ -634,10 +634,18 @@ function ReadFormParams(sFormId)
 				{
 					oMap[sName] = ($(this).attr('checked') == 'checked');
 				}
+				else if (this.type == 'radio')
+				{
+					if ($(this).prop('checked'))
+					{
+						oMap[sName] = $(this).val();					
+					}
+				}
 				else
 				{
 					oMap[sName] = $(this).val();
 				}
+				
 			}
 		}
 	});