From: Dobrica Pavlinusic Date: Mon, 14 Nov 2005 16:16:20 +0000 (+0000) Subject: r8861@llin: dpavlin | 2005-11-14 16:36:22 +0100 X-Git-Url: http://git.rot13.org/?p=webpac2;a=commitdiff_plain;h=fd3372b092c574a1edd772331d3ac12f75b25707 r8861@llin: dpavlin | 2005-11-14 16:36:22 +0100 fix checkbox git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@52 07558da8-63fa-0310-ba24-9fe276d99e06 --- diff --git a/web/iwf/iwfajax.js b/web/iwf/iwfajax.js index 6c5c8e3..a2f3f05 100644 --- a/web/iwf/iwfajax.js +++ b/web/iwf/iwfajax.js @@ -240,8 +240,8 @@ iwfLog("total elements in form named '" + form.name + "': " + form.elements.leng switch(iwfAttribute(el, 'type')){ case 'checkbox': case 'radio': - if (iwfAttribute(el, 'checked')){ - val = iwfAttribute(el, 'value'); + if (iwfAttribute(el, 'checked') || el.checked){ + val = iwfAttribute(el, 'value') || el.value; } break; case 'button':