fixes issue 33577: Not possible to translate tooltip message of the date item
authorCarlos Aristu <carlos.aristu@openbravo.com>
Tue, 02 Aug 2016 11:03:05 +0200
changeset 30061 a5c206b6910c
parent 30060 08d96f71add2
child 30062 818272f89a8f
fixes issue 33577: Not possible to translate tooltip message of the date item

The pickerIconPrompt property is now defined for OBDateItem. This was already defined and working fine for the date item displayed in the filters. But the definition of the pickerIconPrompt, fromDateOnlyPrefix and toDateOnlyPrefix was being set twice. Now those properties are set just in the ob-form-styles.js file
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js	Tue Aug 02 10:20:02 2016 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js	Tue Aug 02 11:03:05 2016 +0200
@@ -363,9 +363,6 @@
       this.Super('clear', arguments);
     }
   },
-  fromDateOnlyPrefix: OB.I18N.getLabel('OBUIAPP_fromDateOnlyPrefix'),
-  toDateOnlyPrefix: OB.I18N.getLabel('OBUIAPP_toDateOnlyPrefix'),
-  pickerIconPrompt: OB.I18N.getLabel('OBUIAPP_pickerIconPrompt'),
   iconVAlign: 'center',
   pickerIconDefaults: {
     name: 'showDateRange',
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Tue Aug 02 10:20:02 2016 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Tue Aug 02 11:03:05 2016 +0200
@@ -317,7 +317,8 @@
 
 isc.OBDateItem.addProperties(isc.addProperties({}, OB.Styles.OBFormField.DefaultDateInput));
 isc.OBDateItem.addProperties({
-  textAlign: 'left'
+  textAlign: 'left',
+  pickerIconPrompt: OB.I18N.getLabel('OBUIAPP_pickerIconPrompt')
 });
 
 isc.OBDateTimeItem.addProperties(isc.addProperties({}, OB.Styles.OBFormField.DefaultDateInput));