details:   https://code.openbravo.com/erp/devel/pi/rev/25447e74a93f
changeset: 16699:25447e74a93f
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed May 30 07:36:48 2012 +0200
summary:   Related to issue 20503: Wrong behaviour in form personalitation
Reenabled record selection by explicitly updating the record selection

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization-treegrid.js
 |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 346fe3bde4ad -r 25447e74a93f 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization-treegrid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization-treegrid.js
   Tue May 29 19:37:57 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization-treegrid.js
   Wed May 30 07:36:48 2012 +0200
@@ -46,7 +46,8 @@
   dropIconSuffix: 'open',
   closedIconSuffix: 'closed',
   openIconSuffix: 'open',
-
+  selectionType: 'single',
+  
   fields: [{
     name: 'title',
     canHover: true,
@@ -248,6 +249,13 @@
     return false;
   },
 
+  // Overridden as it seems that the 8.3 version
+  // of SC does not call the selectionUpdated event anymore
+  cellClick: function (record, rowNum, colNum) {
+    this.deselectAllRecords();
+    this.selectRecord(record);
+  },
+  
   // overridden to create context menu items specific 
   // for the clicked record
   cellContextClick: function (record, rowNum, colNum) {

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to