details:   /erp/devel/pi/rev/528a4309c730
changeset: 10947:528a4309c730
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Tue Mar 01 15:28:13 2011 +0100
summary:   Solve several issues with click on title to open linked item

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
 |  2 +-
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
     |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 3618f3069f88 -r 528a4309c730 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
      Tue Mar 01 14:52:49 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
      Tue Mar 01 15:28:13 2011 +0100
@@ -875,7 +875,7 @@
         } else {
           // make sure that the content gets refreshed
           // refresh and open a child view when all is done
-          this.doRefreshContents(true);
+          this.doRefreshContents(true, true);
         }
         return true;
       }
diff -r 3618f3069f88 -r 528a4309c730 
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
  Tue Mar 01 14:52:49 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Tue Mar 01 15:28:13 2011 +0100
@@ -938,7 +938,7 @@
         height: item.newTabIconSize,
         width: item.newTabIconSize,
         align: 'absmiddle',
-        extraStuff: ' id="' + item.ID + this.LINKBUTTONSUFFIX + '" 
class="OBFormFieldLinkButton" onclick="window[\'' + item.ID + 
'\'].linkButtonClick();"'
+        extraStuff: ' id="' + item.ID + this.LINKBUTTONSUFFIX + '" 
class="OBFormFieldLinkButton" '
       };
       
       var imgHTML = isc.Canvas.imgHTML(searchIconObj);
@@ -949,7 +949,7 @@
         titleHTML = titleHTML.replace('<LABEL', '<LABEL style="cursor: 
pointer"');
       }
       
-      return '<span class="OBFormFieldLinkButton" onclick="window[\'' + 
item.ID + '\'].linkButtonClick();">' + titleHTML + '</span>&nbsp;' + imgHTML;
+      return '<span class="OBFormFieldLinkButton">' + titleHTML + 
'</span>&nbsp;' + imgHTML;
     }
     
     return titleHTML;

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to