Clicking link title now opens linked window
authorMartin Taal <martin.taal@openbravo.com>
Mon, 07 Feb 2011 19:03:40 +0100
changeset 10412 8ddd471e7e4e
parent 10410 67b1779380be
child 10413 9c281083cde2
Clicking link title now opens linked window
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js	Mon Feb 07 18:43:23 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js	Mon Feb 07 19:03:40 2011 +0100
@@ -673,7 +673,7 @@
       
       var imgHTML = isc.Canvas.imgHTML(searchIconObj);
       
-      return "<span class='OBFormFieldLinkButton'>" + titleHTML + '</span>&nbsp;' + imgHTML;
+      return '<span class="OBFormFieldLinkButton" onclick="window[\'' + item.ID + '\'].linkButtonClick();">' + titleHTML + '</span>&nbsp;' + imgHTML;
     }
     
     return titleHTML;