|
@@ -912,12 +912,11 @@
|
|
|
.datepicker({
|
|
|
autoclose: true,
|
|
|
todayHighlight: true,
|
|
|
- format: 'yyyy-mm-dd'
|
|
|
- })
|
|
|
- .off('changeDate')
|
|
|
- .on('changeDate', function() {
|
|
|
- self[self.currentCategory + 'PopupItem'].data.due_date = $(this).val();
|
|
|
- self[self.currentCategory + 'SavePopupItem'].call(self, true);
|
|
|
+ format: 'yyyy-mm-dd',
|
|
|
+ onSelect: function(_date) {
|
|
|
+ self[self.currentCategory + 'PopupItem'].data.due_date = $(this).val();
|
|
|
+ self[self.currentCategory + 'SavePopupItem'].call(self, true);
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
$(document).off('focus', '#ticketsApp input.form-control');
|