details: /erp/devel/pi/rev/7e2417644d23
changeset: 9769:7e2417644d23
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Jan 13 11:13:24 2011 +0100
summary: [process] Cleanup of refactored methods
details: /erp/devel/pi/rev/8c0c0573ce58
changeset: 9770:8c0c0573ce58
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Jan 13 11:18:37 2011 +0100
summary: [process] Hide buttons by default
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
| 5 +
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-utilities.js
| 54 ----------
3 files changed, 5 insertions(+), 59 deletions(-)
diffs (94 lines):
diff -r 14a79420de7a -r 8c0c0573ce58
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
Thu Jan 13 11:09:38 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
Thu Jan 13 11:18:37 2011 +0100
@@ -23,6 +23,11 @@
isc.ClassFactory.defineClass('OBToolbarActionButton', isc.OBToolbarTextButton);
isc.OBToolbarTextButton.addProperties( {
+ initWidget: function(properties){
+ //Hide buttons by default, they will be shown if needed by the refresh
method
+ this.hide();
+ },
+
action : function() {
this.runProcess();
},
diff -r 14a79420de7a -r 8c0c0573ce58
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
Thu Jan 13 11:09:38 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
Thu Jan 13 11:18:37 2011 +0100
@@ -182,11 +182,6 @@
rightMembers: rightMemberButtons
});
- // [isc.OBToolbarTextButton.create({
- // action: 'OB.Utilities.openActionButton(this, {viewId:
"OBPopupClassicWindow", obManualURL: "TablesandColumns/Table_Edition.html",
processId: "173", id: "173", command: "BUTTONImportTable173", tabTitle:
"Testing"});',
- // title: 'Button A'
- // })]
-
this.Super('initWidget', arguments);
},
diff -r 14a79420de7a -r 8c0c0573ce58
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
Thu Jan 13 11:09:38 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
Thu Jan 13 11:18:37 2011 +0100
@@ -838,60 +838,6 @@
return requestProperties;
};
-OB.Utilities.openActionButton = function(button, o){
- var theView = button.parentElement.parentElement.view;
- var selectedRecord = theView.viewGrid.getSelectedRecord();
-
- if (!selectedRecord) {
- isc.warn('No record selected');
- return;
- }
-
- var allProperties = theView.getContextInfo(false, true);
- var sessionProperties = theView.getContextInfo(true, true);
-
- OB.Utilities.viewCallingProcess = theView;
-
- for (var param in allProperties) {
- if (allProperties.hasOwnProperty(param)) {
- o.command += '&' + param + '=' + allProperties[param];
- }
- }
-
- theView.setContextInfo(sessionProperties, function(){
- OB.Layout.ViewManager.openView('OBPopupClassicWindow', o);
- });
-};
-
-OB.Utilities.openActionButtonCallback = function(button, o){
- var theView = button.parentElement.parentElement.view;
- var selectedRecord = theView.viewGrid.getSelectedRecord();
-
- if (!selectedRecord) {
- isc.warn('No record selected');
- return;
- }
-
- // TODO: this has to be checked, these variables are not used?
- var allProperties = theView.getContextInfo(false, true);
- var sessionProperties = theView.getContextInfo(true, true);
- // this was old code, but this could not have worked
-// var params = theView.getContextInfo(allProperties, sessionProperties,
true);
-
- for (var param in params) {
- if (params.hasOwnProperty(param)) {
- o.command += '&' + param + '=' + params[param];
- }
- }
-
- theView.setContextInfo(sessionProperties, function(){
- OB.Layout.ViewManager.openView('OBPopupClassicWindow', o);
- });
-
- OB.Layout.ViewManager.openView('OBPopupClassicWindow', o);
-};
-
-
//** {{{ OB.Utilities.postThroughHiddenForm }}} **
//
// Global method to post a request through a hidden form located on:
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits