details: https://code.openbravo.com/erp/devel/pi/rev/d54c2b9fe7f1
changeset: 18199:d54c2b9fe7f1
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Thu Oct 11 11:35:17 2012 +0200
summary: Fixes issue 21905: Range of dates available using the picker has
been expanded
By default, the range of dates available using the picker was from 1-1-1995 to
31-12-2005. This range has been increased to 1-1-1950 - 31-12-2015.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
| 3 +++
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
| 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diffs (26 lines):
diff -r b5a0eec3607a -r d54c2b9fe7f1
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
Fri Oct 05 08:50:16 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
Thu Oct 11 11:35:17 2012 +0200
@@ -228,6 +228,9 @@
isc.OBDateItem.addProperties(OB.DateItemProperties, {
validateOnExit: true,
+ startDate: Date.createLogicalDate(1950, 0, 1),
+ endDate: Date.createLogicalDate(2050, 11, 31),
+
init: function () {
// this call super.init
this.doInit();
diff -r b5a0eec3607a -r d54c2b9fe7f1
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
Fri Oct 05 08:50:16 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
Thu Oct 11 11:35:17 2012 +0200
@@ -42,6 +42,9 @@
quartersFromNowTitle: OB.I18N.getLabel('OBUIAPP_quarters_from_now'),
yearsFromNowTitle: OB.I18N.getLabel('OBUIAPP_years_from_now'),
+ startDate: Date.createLogicalDate(1950, 0, 1),
+ endDate: Date.createLogicalDate(2050, 11, 31),
+
presetOptions: {
"$today": OB.I18N.getLabel('OBUISC_DateChooser.todayButtonTitle'),
"$yesterday": OB.I18N.getLabel('OBUIAPP_Yesterday'),
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits