details: /erp/devel/pi/rev/8ddd471e7e4e
changeset: 10411:8ddd471e7e4e
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Feb 07 19:03:40 2011 +0100
summary: Clicking link title now opens linked window
details: /erp/devel/pi/rev/9c281083cde2
changeset: 10412:9c281083cde2
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Feb 07 19:03:56 2011 +0100
summary: Solved issue that linked items section was shown when clicking in
new mode
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-linked-items.js
| 14 ++++++++++
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
| 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (44 lines):
diff -r 67b1779380be -r 9c281083cde2
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-linked-items.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-linked-items.js
Mon Feb 07 18:43:23 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-linked-items.js
Mon Feb 07 19:03:56 2011 +0100
@@ -76,6 +76,11 @@
},
expandSection: function(){
+ // if this is not there then when clicking inside the
+ // section item will visualize it
+ if (!this.isVisible()) {
+ return;
+ }
var ret = this.Super('expandSection', arguments);
this.getLinkedItemPart().setExpanded(true);
return ret;
@@ -83,7 +88,16 @@
hide: function(){
this.collapseSection();
+ this.prompt = '';
return this.Super('hide', arguments);
+ },
+
+ visibilityChanged: function(state) {
+ if (state) {
+ this.prompt = OB.I18N.getLabel('OBUIAPP_LinkedItemsPrompt');
+ } else {
+ this.prompt = '';
+ }
}
});
diff -r 67b1779380be -r 9c281083cde2
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
Mon Feb 07 18:43:23 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
Mon Feb 07 19:03:56 2011 +0100
@@ -673,7 +673,7 @@
var imgHTML = isc.Canvas.imgHTML(searchIconObj);
- return "<span class='OBFormFieldLinkButton'>" + titleHTML +
'</span> ' + imgHTML;
+ return '<span class="OBFormFieldLinkButton" onclick="window[\'' +
item.ID + '\'].linkButtonClick();">' + titleHTML + '</span> ' + imgHTML;
}
return titleHTML;
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits