details: /erp/devel/pi/rev/acbf6d8e8822
changeset: 7933:acbf6d8e8822
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Jul 29 10:50:08 2010 +0200
summary: fixed bug 13989: refresh button is different when using the new
layout
Make an special case when generating toolbar for refresh button id, in order
to use the same id as it was used in the 2.50 layout.
diffstat:
src/org/openbravo/erpCommon/utility/ToolBar_Button.java | 7 ++++++-
src/org/openbravo/erpCommon/utility/ToolBar_Image.java | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 32653bcd1837 -r acbf6d8e8822
src/org/openbravo/erpCommon/utility/ToolBar_Button.java
--- a/src/org/openbravo/erpCommon/utility/ToolBar_Button.java Thu Jul 29
10:29:47 2010 +0200
+++ b/src/org/openbravo/erpCommon/utility/ToolBar_Button.java Thu Jul 29
10:50:08 2010 +0200
@@ -84,7 +84,12 @@
toolbar.append("';return true;\" ");
toolbar
.append("onMouseOut=\"window.status='';return true;\"
onclick=\"this.hideFocus=true\" onblur=\"this.hideFocus=false\" ");
- toolbar.append("id=\"linkButton").append(name).append("\">");
+ // Needed to build the HTML tag id as refresh has in classic layout
+ if (name.equals("Refresh")) {
+ toolbar.append("id=\"button").append(name).append("\">");
+ } else {
+ toolbar.append("id=\"linkButton").append(name).append("\">");
+ }
toolbar.append(image);
toolbar.append("</a>");
return toolbar.toString();
diff -r 32653bcd1837 -r acbf6d8e8822
src/org/openbravo/erpCommon/utility/ToolBar_Image.java
--- a/src/org/openbravo/erpCommon/utility/ToolBar_Image.java Thu Jul 29
10:29:47 2010 +0200
+++ b/src/org/openbravo/erpCommon/utility/ToolBar_Image.java Thu Jul 29
10:50:08 2010 +0200
@@ -48,7 +48,12 @@
toolbar.append("<img class=\"Main_ToolBar_Button_Icon
Main_ToolBar_Button_Icon_").append(
imageClass).append("\"
src=\"").append(base_direction).append("/images/blank.gif\" ");
toolbar.append("title=\"").append(description);
- toolbar.append("\" border=\"0\" id=\"button").append(name).append("\"");
+ // Needed to build the HTML tag id as refresh has in classic layout
+ if (name.equals("Refresh")) {
+ toolbar.append("\" border=\"0\"
id=\"linkButton").append(name).append("\"");
+ } else {
+ toolbar.append("\" border=\"0\" id=\"button").append(name).append("\"");
+ }
toolbar.append(">");
return toolbar.toString();
}
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits