details: /erp/devel/pi/rev/ab7737199eb7
changeset: 9877:ab7737199eb7
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Mon Jan 17 19:24:17 2011 +0100
summary: [form][style] Small improvements in OBDateChooser
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
| 11 +++++++++-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
| 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 9e5d101c9b60 -r ab7737199eb7
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Mon Jan 17 19:16:05 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Mon Jan 17 19:24:17 2011 +0100
@@ -471,9 +471,17 @@
isc.ClassFactory.defineClass('OBDateChooser', DateChooser);
isc.OBDateChooser.addProperties({
- firstDayOfWeek: 1
+ firstDayOfWeek: 1,
+ autoHide: true,
+ showCancelButton: true
});
+if (isc.OBDateChooser) { // To force SC to load OBDateChooser instead of
DateChooser
+ isc.DateChooser.getSharedDateChooser = function(properties) {
+ return isc.OBDateChooser.create(properties);
+ }
+}
+
// == OBDateItem ==
// OBDateItem inherits from SmartClient DateItem
// adds autocomplete and formatting based on the Openbravo date pattern
@@ -665,6 +673,7 @@
// ** {{{ pickerConstructor }}} **
// Picker constructor class
pickerConstructor: 'OBDateChooser',
+ useSharedPicker: true,
// ** {{{ dateFormat }}} **
// Dateformat function
diff -r 9e5d101c9b60 -r ab7737199eb7
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
Mon Jan 17 19:16:05 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
Mon Jan 17 19:24:17 2011 +0100
@@ -123,7 +123,7 @@
});
-isc.DateChooser.addProperties({ //TODO : Changed to
'isc.OBDateChooser.addProperties'
+isc.OBDateChooser.addProperties({
headerStyle: 'OBDateChooserButton',
weekendHeaderStyle: 'OBDateChooserWeekendButton',
baseNavButtonStyle: 'OBDateChooserNavButton',
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits