details: https://code.openbravo.com/erp/devel/pi/rev/8552c3633a70
changeset: 22846:8552c3633a70
user: Guillermo Gil <guillermo.gil <at> openbravo.com>
date: Wed Apr 09 08:27:03 2014 +0200
summary: Related to issue 25343: JSlint fixed on messageInterval
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
| 21 +++++----
1 files changed, 11 insertions(+), 10 deletions(-)
diffs (31 lines):
diff -r 4a57750631e2 -r 8552c3633a70
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
Tue Apr 08 19:19:23 2014 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
Wed Apr 09 08:27:03 2014 +0200
@@ -47,16 +47,17 @@
view.messageBar.setMessage(paramObj.msgType, paramObj.msgTitle,
paramObj.msgText);
} else { // If the window is not loaded, wait and try again
var i = 0,
- messageInterval = setInterval(function () {
- view = OB.MainView.TabSet.getSelectedTab().pane.activeView;
- if (view && view.messageBar) {
- clearInterval(messageInterval);
- view.messageBar.setMessage(paramObj.msgType, paramObj.msgTitle,
paramObj.msgText);
- } else if (i === 5) {
- clearInterval(messageInterval);
- }
- i++;
- }, 500); //Call this action again with a 500ms delay
+ messageInterval;
+ messageInterval = setInterval(function () {
+ view = OB.MainView.TabSet.getSelectedTab().pane.activeView;
+ if (view && view.messageBar) {
+ clearInterval(messageInterval);
+ view.messageBar.setMessage(paramObj.msgType, paramObj.msgTitle,
paramObj.msgText);
+ } else if (i === 5) {
+ clearInterval(messageInterval);
+ }
+ i++;
+ }, 500); //Call this action again with a 500ms delay
}
});
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits