details:   https://code.openbravo.com/erp/devel/pi/rev/faf3cb419328
changeset: 23283:faf3cb419328
user:      Guillermo Gil <guillermo.gil <at> openbravo.com>
date:      Fri May 23 13:40:15 2014 +0200
summary:   Fixed issue 26640:Recent Documents should open just its record

Added Direct navigation to recent documents

diffstat:

 
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
 |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 2e8a0f241dc7 -r faf3cb419328 
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
--- 
a/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
      Fri May 23 23:27:48 2014 +0000
+++ 
b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
      Fri May 23 13:40:15 2014 +0200
@@ -558,7 +558,12 @@
     if (recentList && recentList.length > 0) {
 
       handleClickFunction = function () {
-        OB.Layout.ViewManager.openView(this.recent.viewId, this.recent);
+        // Add the targetTabId as id for using it as the link for the Direct 
navigation
+        if (this.recent) {
+          this.recent.id = this.recent.targetTabId;
+        }
+        //Direct set to true in order to open just the record selected
+        OB.Layout.ViewManager.openView(this.recent.viewId, this.recent, null, 
true);
       };
 
       for (; recentIndex < recentList.length; recentIndex++) {

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to