details: /erp/devel/pi/rev/e485d4ccc287
changeset: 8111:e485d4ccc287
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Wed Aug 11 17:34:05 2010 +0200
summary: Fixes issue 14010: Fixes ID generation for new buttons in the toolbar
- The ID of the HTML button tag must match the one in 2.50
diffstat:
src/org/openbravo/erpCommon/utility/ToolBar_Button.java | 2 +-
src/org/openbravo/erpCommon/utility/ToolBar_Image.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r a26d48c2d8c6 -r e485d4ccc287
src/org/openbravo/erpCommon/utility/ToolBar_Button.java
--- a/src/org/openbravo/erpCommon/utility/ToolBar_Button.java Wed Aug 11
14:09:42 2010 +0200
+++ b/src/org/openbravo/erpCommon/utility/ToolBar_Button.java Wed Aug 11
17:34:05 2010 +0200
@@ -85,7 +85,7 @@
toolbar
.append("onMouseOut=\"window.status='';return true;\"
onclick=\"this.hideFocus=true\" onblur=\"this.hideFocus=false\" ");
// Needed to build the HTML tag id as refresh has in classic layout
- if (name.equals("Refresh")) {
+ if (name.equals("Refresh") || name.equals("Edition") ||
name.equals("Relation")) {
toolbar.append("id=\"button").append(name).append("\">");
} else {
toolbar.append("id=\"linkButton").append(name).append("\">");
diff -r a26d48c2d8c6 -r e485d4ccc287
src/org/openbravo/erpCommon/utility/ToolBar_Image.java
--- a/src/org/openbravo/erpCommon/utility/ToolBar_Image.java Wed Aug 11
14:09:42 2010 +0200
+++ b/src/org/openbravo/erpCommon/utility/ToolBar_Image.java Wed Aug 11
17:34:05 2010 +0200
@@ -49,7 +49,7 @@
imageClass).append("\"
src=\"").append(base_direction).append("/images/blank.gif\" ");
toolbar.append("title=\"").append(description);
// Needed to build the HTML tag id as refresh has in classic layout
- if (name.equals("Refresh")) {
+ if (name.equals("Refresh") || name.equals("Edition") ||
name.equals("Relation")) {
toolbar.append("\" border=\"0\"
id=\"linkButton").append(name).append("\"");
} else {
toolbar.append("\" border=\"0\" id=\"button").append(name).append("\"");
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits