details:   /erp/devel/pi/rev/f7b586b31a9a
changeset: 10782:f7b586b31a9a
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Fri Feb 18 11:58:36 2011 +0100
summary:   Fixed date chooser. Now on date blur the seleted value is kept

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
 |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2873c2ed15b3 -r f7b586b31a9a 
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
   Fri Feb 18 11:44:01 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
   Fri Feb 18 11:58:36 2011 +0100
@@ -318,7 +318,7 @@
 // add specific properties here
 isc.OBEncryptedItem.addProperties({
   changed : function(form,item,value) {
-       this.form.setValue(item.name + '.cleartext', value);
+    this.form.setValue(item.name + '.cleartext', value);
   }
 });
 
@@ -507,7 +507,12 @@
   autoHide: true,
   showCancelButton: true,
   todayButtonTitle: OB.I18N.getLabel('OBUISC_DateChooser.todayButtonTitle'),
-  cancelButtonTitle: OB.I18N.getLabel('OBUISC_DateChooser.cancelButtonTitle')
+  cancelButtonTitle: OB.I18N.getLabel('OBUISC_DateChooser.cancelButtonTitle'),
+  dataChanged: function(){
+    // When data has changed, force the OBDateItem to get it. Other case 
OBDateItem.blur 
+    // gets incorrect value on getValue()
+    this.callingFormItem.setValue(this.getData());
+  }
 });
 
 if (isc.OBDateChooser) {  // To force SC to load OBDateChooser instead of 
DateChooser

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to