details:   https://code.openbravo.com/erp/devel/pi/rev/87b0a2f932f2
changeset: 13157:87b0a2f932f2
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Thu Jul 14 17:56:41 2011 +0200
summary:   Fixes issue 0017812: Recent views shows a window-icon instead of a 
report icon
recent.icon already contains the path of the proper image, it is no longer an 
identifier: Process, Report, Form or Window.

diffstat:

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

diffs (15 lines):

diff -r 5ba902b0d15e -r 87b0a2f932f2 
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
      Thu Jul 14 16:12:08 2011 +0200
+++ 
b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
      Thu Jul 14 17:56:41 2011 +0200
@@ -382,8 +382,10 @@
               icon = 
OB.Styles.OBMyOpenbravo.recentViewsLayout.nodeIcons.Report;
             } else if (recent.icon === 'Form') {
               icon = OB.Styles.OBMyOpenbravo.recentViewsLayout.nodeIcons.Form;
+            } else if (recent.icon === 'Window') {
+              icon = 
OB.Styles.OBMyOpenbravo.recentViewsLayout.nodeIcons.Window;
             } else {
-              icon = 
OB.Styles.OBMyOpenbravo.recentViewsLayout.nodeIcons.Window;
+              icon = recent.icon; // icon is already a path
             }
           } else {
             icon = OB.Styles.OBMyOpenbravo.recentViewsLayout.nodeIcons.Window;

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to