[process] Make post modal popup work on FF
authorAsier Lostalé <asier.lostale@openbravo.com>
Mon, 24 Jan 2011 18:01:06 +0100
changeset 10107 81eaa81faa30
parent 10106 c57d1b29b3c3
child 10108 7478341bfa2b
[process] Make post modal popup work on FF
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-compatibility.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-compatibility.js	Mon Jan 24 17:40:05 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-compatibility.js	Mon Jan 24 18:01:06 2011 +0100
@@ -420,7 +420,7 @@
             // Create a form and POST parameters as input hidden values
             var doc = cPopup.getIframeHtmlObj().contentWindow.frames[0].document,
                 frm = doc.createElement('form');
-            frm.setAttribute('method','get');
+            frm.setAttribute('method','post');
             frm.setAttribute('action', cPopup.popupURL);
             for (var i in postParams) {
               if (postParams.hasOwnProperty(i)){
@@ -431,6 +431,7 @@
                 frm.appendChild(inp);
               }
             }
+            doc.body.appendChild(frm);
             frm.submit();
           }
           cPopup.getIframeHtmlObj().contentWindow.frames[0].name = wName;