details: /erp/devel/pi/rev/958a5e60ff93
changeset: 10901:958a5e60ff93
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Feb 28 10:39:44 2011 +0100
summary: Fixes issue 15194: Window title could be set based in current active
tab
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
| 5 +++++
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
| 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r 4fff0c828cdb -r 958a5e60ff93
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
Mon Feb 28 10:35:03 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
Mon Feb 28 10:39:44 2011 +0100
@@ -1120,6 +1120,11 @@
title = prefix + title + suffix;
tabSet.setTabTitle(tab, title);
}
+
+ if (this.isRootView) {
+ // update the document title
+ document.title = 'Openbravo - ' + tab.title;
+ }
},
isViewVisible: function(){
diff -r 4fff0c828cdb -r 958a5e60ff93
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
Mon Feb 28 10:35:03 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
Mon Feb 28 10:39:44 2011 +0100
@@ -69,6 +69,8 @@
if (tabPane.tabSelected) {
tabPane.tabSelected(tabNum, tabPane, ID, tab);
}
+ // update the document title
+ document.title = 'Openbravo - ' + tab.title;
},
tabDeselected: function (tabNum, tabPane, ID, tab, newTab) {
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits