unimarc to marc21
[webpac2] / web / iwf / iwfajax.js
index d68e5c8..d6d5806 100644 (file)
@@ -275,9 +275,12 @@ function _iwfGetFormData(form, url, ctl){
                                case 'input':\r
                                        switch(iwfAttribute(el, 'type')){\r
                                                case 'checkbox':\r
+                                                       if (iwfAttribute(el, 'checked')){\r
+                                                               val = 'on';\r
+                                                       }\r
                                                case 'radio':\r
-                                                       if (iwfAttribute(el, 'checked') || el.checked){\r
-                                                               val = iwfAttribute(el, 'value') || el.value;\r
+                                                       if (iwfAttribute(el, 'checked')){\r
+                                                               val = iwfAttribute(el, 'value');\r
                                                        }\r
                                                        break;\r
                                                case 'button':\r