details: https://code.openbravo.com/erp/devel/pi/rev/2c1ce05694a0
changeset: 16859:2c1ce05694a0
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Mon Jun 18 14:59:20 2012 +0200
summary: Related to issue 19728: Do more JS code formatting
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
| 38 +++++-----
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
| 4 +-
2 files changed, 21 insertions(+), 21 deletions(-)
diffs (70 lines):
diff -r 63adc86e9eb3 -r 2c1ce05694a0
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
Mon Jun 18 14:37:11 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
Mon Jun 18 14:59:20 2012 +0200
@@ -59,27 +59,27 @@
if (isc.isA.String(value) && (value.contains('+') || value.contains('-')))
{
value = isc.Time.parseInput(value, null, null, true);
}
- if (value && isc.isA.String(value)) {
- value = isc.Time.parseInput(value);
- }
- if (value && isc.isA.Date(value)) {
- this.setTodaysDate(value);
- }
+ if (value && isc.isA.String(value)) {
+ value = isc.Time.parseInput(value);
+ }
+ if (value && isc.isA.Date(value)) {
+ this.setTodaysDate(value);
+ }
return this.Super('setValue', arguments);
},
-
+
getValue: function () {
- var value = this.Super('getValue', arguments);
- if (value && isc.isA.Date(value)) {
- this.setTodaysDate(value);
- }
- return value;
+ var value = this.Super('getValue', arguments);
+ if (value && isc.isA.Date(value)) {
+ this.setTodaysDate(value);
+ }
+ return value;
},
-
- setTodaysDate: function(date) {
- var today = new Date();
- date.setYear(today.getFullYear());
- date.setMonth(today.getMonth());
- date.setDate(today.getDate());
- }
+
+ setTodaysDate: function (date) {
+ var today = new Date();
+ date.setYear(today.getFullYear());
+ date.setMonth(today.getMonth());
+ date.setDate(today.getDate());
+ }
});
\ No newline at end of file
diff -r 63adc86e9eb3 -r 2c1ce05694a0
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
Mon Jun 18 14:37:11 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
Mon Jun 18 14:59:20 2012 +0200
@@ -23,7 +23,7 @@
* Check that entered return quantity is less than original inout qty.
*/
OB.RM.RMOrderQtyValidate = function (item, validator, value, record) {
- if (!isc.isA.Number(value)){
+ if (!isc.isA.Number(value)) {
return false;
}
// Check if record has related shipment to skip check.
@@ -140,4 +140,4 @@
record.movementQuantity = availableQty.toString();
}
}
-};
+};
\ No newline at end of file
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits