Related to issue 20207: Improved complexes 'action buttons' in IE9 using HTML5 - part2
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 10 May 2012 15:19:17 +0200
changeset 16485 d993d583464c
parent 16484 e3eca21395e5
child 16486 27f29f685bb4
Related to issue 20207: Improved complexes 'action buttons' in IE9 using HTML5 - part2
src/org/openbravo/erpCommon/ad_actionButton/CreditPaymentGrid.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreditPaymentGrid.html	Tue May 08 13:21:36 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreditPaymentGrid.html	Thu May 10 15:19:17 2012 +0200
@@ -161,9 +161,12 @@
           var newRows = '<table><tbody id=\"sectionGrid\">'+ aux;
           temp.innerHTML = newRows;
           tableBody.parentNode.replaceChild(temp.firstChild.firstChild, tableBody);
-          temp.parentNode.removeChild(temp);
+          if (temp.parentNode) {
+            temp.parentNode.removeChild(temp);
+          }
+        } else {
+          tableBody.innerHTML = aux;
         }
-        tableBody.innerHTML = aux;
         
         reloadOpener();
         updateExpectedAmt();