Fixes infinite loop when adding a widget
authorIván Perdomo <ivan.perdomo@openbravo.com>
Tue, 25 Jan 2011 18:31:05 +0100
changeset 10122 e17e746c3136
parent 10121 9a005ac2addf
child 10123 d62a4a5f2000
Fixes infinite loop when adding a widget
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js	Tue Jan 25 17:48:28 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js	Tue Jan 25 18:31:05 2011 +0100
@@ -54,7 +54,7 @@
           }
           if (canvas.grid) {
             canvas = canvas.grid;
-          } if (canvas.form) {
+          } if (isc.FormItem.isA(canvas) && canvas.form) {
             canvas = canvas.form;
           } else {
             canvas = canvas.parentElement;