details:   /erp/devel/pi/rev/3e993613f156
changeset: 11634:3e993613f156
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Thu Apr 21 12:15:54 2011 +0200
summary:   Fixes issue 16847: Using Chrome, copying the window name from the 
recent list opens the window

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
 |  13 ++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diffs (35 lines):

diff -r a5500d39d9f5 -r 3e993613f156 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
       Thu Apr 21 10:48:00 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
       Thu Apr 21 12:15:54 2011 +0200
@@ -36,11 +36,19 @@
       editorType: 'link',
       value: null,
       showTitle: false,
+      width: 1,
+      overflow: 'visible',
       target: 'javascript',
       shouldSaveValue: false,
       recentPropertyName: this.recentPropertyName,
       prefixLabel: this.prefixLabel,
       handleClick: function(){
+        // getting the last event prevents an error in chrome
+        // https://issues.openbravo.com/view.php?id=16847
+        var lastEvent = isc.EventHandler.getLastEvent();
+        if (!isc.EventHandler.leftButtonDown()) {
+          return;
+        }
         OB.RecentUtilities.addRecent(this.recentPropertyName, 
this.recentObject);
         if (this.recentObject.viewId) {
           OB.Layout.ViewManager.openView(this.recentObject.viewId, 
this.recentObject);
@@ -98,6 +106,11 @@
   initWidget: function(){
     this.members = [isc.DynamicForm.create({
       visibility: 'hidden',
+      canSelectText: true,
+      handleClick: function() {
+        // overridden to prevent double firing of click event
+        // https://issues.openbravo.com/view.php?id=16847
+      },
       numCols: 1
     }), isc.DynamicForm.create({
       autoFocus: true,

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to