Fixed issue #946 - Current date in date picker not highlighted.

This commit is contained in:
Rolf Schmidt 2017-04-13 11:05:45 +02:00
parent 8c8f24f077
commit fb1d20c5e4
2 changed files with 2 additions and 0 deletions

View file

@ -124,6 +124,7 @@ class App.UiElement.date
App.Log.debug 'UiElement.date.setNewTimeInitial', timestamp, timeObject App.Log.debug 'UiElement.date.setNewTimeInitial', timestamp, timeObject
item.find('.js-datepicker').datepicker('setUTCDate', timeObject) item.find('.js-datepicker').datepicker('setUTCDate', timeObject)
item.find('.js-datepicker').datepicker('update')
@validation: (item, attribute, runtime) -> @validation: (item, attribute, runtime) ->

View file

@ -136,6 +136,7 @@ class App.UiElement.datetime
App.Log.debug 'UiElement.datetime.setNewTimeInitial', timestamp, timeObject App.Log.debug 'UiElement.datetime.setNewTimeInitial', timestamp, timeObject
item.find('.js-datepicker').datepicker('setUTCDate', timeObject) item.find('.js-datepicker').datepicker('setUTCDate', timeObject)
item.find('.js-timepicker').val(time) item.find('.js-timepicker').val(time)
item.find('.js-datepicker').datepicker('update')
@validation: (item, attribute, runtime) -> @validation: (item, attribute, runtime) ->