details: https://code.openbravo.com/erp/devel/pi/rev/74e03242ccdc
changeset: 15553:74e03242ccdc
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Tue Feb 21 13:14:31 2012 +0100
summary: Fixed issue 19779: 'Double-click' is not possible anymore in new
process buttons
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
| 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8e3bca6e8153 -r 74e03242ccdc
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
Mon Feb 20 23:53:10 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
Tue Feb 21 13:14:31 2012 +0100
@@ -85,7 +85,6 @@
// obuiapp_process definition
if (this.newDefinition) {
- me.setDisabled(true); // To avoid button could be clicked twice
callbackFunction = function () {
standardWindow.openProcess({
processId: me.processId,
@@ -94,10 +93,13 @@
actionHandler: me.command,
buttons: me.labelValue
});
- me.setDisabled(false); // Activate again the button
+ me.opening = false; // Activate again the button
};
- theView.setContextInfo(sessionProperties, callbackFunction, true);
+ if (!me.opening) {
+ me.opening = true; // To avoid button could be clicked twice
+ theView.setContextInfo(sessionProperties, callbackFunction, true);
+ }
return;
}
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits