details: /erp/devel/pi/rev/3d42df63eae4
changeset: 12221:3d42df63eae4
user: Martin Taal <martin.taal <at> openbravo.com>
date: Wed May 18 12:27:19 2011 +0200
summary: Solved jslint warnings
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
| 2 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-recent-utilities.js
| 2 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
| 2 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
| 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diffs (48 lines):
diff -r 7560b0c460e1 -r 3d42df63eae4
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
Wed May 18 12:22:47 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
Wed May 18 12:27:19 2011 +0200
@@ -261,7 +261,7 @@
var selectionLength = selection.getLength();
var newValue = ' ';
if (selectionLength > 0) {
- newValue = selectionLength + '';
+ newValue = String(selectionLength);
}
if (this.filterEditor) {
this.filterEditor.getEditForm().setValue(this.getCheckboxField().name,
newValue);
diff -r 7560b0c460e1 -r 3d42df63eae4
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-recent-utilities.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-recent-utilities.js
Wed May 18 12:22:47 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-recent-utilities.js
Wed May 18 12:27:19 2011 +0200
@@ -52,7 +52,7 @@
}
// is the value valid
- if (!this.recentNum || ('' + this.recentNum) !== ('' +
parseInt(this.recentNum, 10))) {
+ if (!this.recentNum || (String(this.recentNum)) !==
(String(parseInt(this.recentNum, 10)))) {
this.recentNum = 3;
}
return this.recentNum;
diff -r 7560b0c460e1 -r 3d42df63eae4
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
Wed May 18 12:22:47 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
Wed May 18 12:27:19 2011 +0200
@@ -299,7 +299,7 @@
},
dragMove: function(){
- var offset = (0 - isc.EH.dragOffsetY);
+ var offset = -1 * isc.EH.dragOffsetY;
this.resizeTarget(this.tabSet, true, true, offset, -1 *
this.getHeight(), null, true);
this.tabSet.draggedHeight = this.tabSet.getHeight();
// if (this.tabSet.getHeight() === this.getHeight()) {
diff -r 7560b0c460e1 -r 3d42df63eae4
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
Wed May 18 12:22:47 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
Wed May 18 12:27:19 2011 +0200
@@ -48,7 +48,7 @@
registry: {},
register: function(key, object){
- if (true || isTestEnvironment) {
+ if (isTestEnvironment) {
isc.Log.logDebug('Registering ' + key + ' in test registry ', 'OB');
this.registry[key] = object;
}
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits