瀏覽代碼

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();
 				}
+				
 			}
 		}
 	});