[DE] Change applying date for date content control

This commit is contained in:
Julia Radzhabova 2019-12-09 15:55:41 +03:00
parent 9616b1a235
commit fcb6db246b

View file

@ -4003,11 +4003,9 @@ define([
firstday: 1 firstday: 1
}); });
this.cmpCalendar.on('date:click', function (cmp, date) { this.cmpCalendar.on('date:click', function (cmp, date) {
var props = me._dateObj, var specProps = me._dateObj.get_DateTimePr();
specProps = props.get_DateTimePr(),
id = props.get_InternalId();
specProps.put_FullDate(new Date(date)); specProps.put_FullDate(new Date(date));
me.api.asc_SetContentControlProperties(props, id); me.api.asc_SetContentControlDatePickerDate(specProps);
controlsContainer.hide(); controlsContainer.hide();
me.api.asc_UncheckContentControlButtons(); me.api.asc_UncheckContentControlButtons();
me.fireEvent('editcomplete', me); me.fireEvent('editcomplete', me);