r8878@llin: dpavlin | 2005-11-14 18:56:54 +0100
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 15 Nov 2005 14:29:59 +0000 (14:29 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 15 Nov 2005 14:29:59 +0000 (14:29 +0000)
 again some local changes and fixes

git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@56 07558da8-63fa-0310-ba24-9fe276d99e06

web/iwf/iwfajax.js

index e5c41b4..7d48796 100644 (file)
@@ -276,8 +276,8 @@ function _iwfGetFormData(form, url, ctl){
                                        switch(iwfAttribute(el, 'type')){\r
                                                case 'checkbox':\r
                                                case 'radio':\r
-                                                       if (iwfAttribute(el, 'checked')){\r
-                                                               val = iwfAttribute(el, 'value');\r
+                                                       if (iwfAttribute(el, 'checked') || el.checked){\r
+                                                               val = iwfAttribute(el, 'value') || el.value;\r
                                                        }\r
                                                        break;\r
                                                case 'button':\r
@@ -311,11 +311,11 @@ function _iwfGetFormData(form, url, ctl){
                                        }\r
                                        break;\r
                                case 'textarea':\r
-                                       val = iwfAttribute(el, 'innerText');\r
+                                       val = iwfAttribute(el, 'innerText') || el.value;\r
                                        break;\r
                                case 'button':\r
                                        if (el == ctl){\r
-                                               val = iwfAttribute(el, 'innerText');\r
+                                               val = iwfAttribute(el, 'innerText') || el.value;\r
                                        }\r
                                        break;\r
                                case 'select':\r
@@ -520,7 +520,7 @@ function _iwfInsertHtml(html, parentNodeId){
                                iwfAppendChild('body', elScript);\r
 \r
                        } catch(e){\r
-iwfLog("IE Hack for injecting script tag...", true);\r
+//iwfLog("IE Hack for injecting script tag...", true);\r
                                //! IE hack\r
                                // IE needs a visible tag within a non-script element to have scripting apply... Don't ask me why, ask the IE team why.\r
                                // My guess is the visible element causes the page to at least partially re-render, which in turn kicks off any script parsing\r
@@ -694,7 +694,7 @@ function _iwfOnRequestEnd(){
                                }\r
                        } else {\r
                                // use default busy implementation...\r
-                               window.status = 'Remaining: ' + _iwfRequestsPending;\r
+                               window.status = 'Remaining: ' + _iwfPendingRequests;\r
                        }\r
                } else {\r
                        // they didn't define an end function,\r