diff --git a/CHANGELOG.md b/CHANGELOG.md index 31f5ebaca..e932ed251 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,8 @@ and fixes the following bugs: Thanks to xet7. - [Fix Broken Hyperlinks in Markdown to HTML conversion](https://github.com/wekan/wekan/commit/973a49526fdf22c143468d3d9db64269b1defa7d). Thanks to xet7. +- [Fix migrations](https://github.com/wekan/wekan/commit/0acbf30b0346f49c0ee8f5161fb00b4eca8e1a0c). + Thanks to xet7. Thanks to above GitHub users for their contributions and translators for their translations. diff --git a/client/components/cards/cardDate.jade b/client/components/cards/cardDate.jade index b477ff723..e387112bc 100644 --- a/client/components/cards/cardDate.jade +++ b/client/components/cards/cardDate.jade @@ -93,3 +93,39 @@ template(name="minicardCustomFieldDate") if showWeekOfYear b | {{showWeek}} + +template(name="editCardReceivedDatePopup") + form.edit-card-received-date + .datepicker + .clear-date + a.js-clear-date {{_ 'clear'}} + .datepicker-actions + button.primary.wide.left(type="submit") {{_ 'save'}} + button.js-delete-date.negate.wide.right {{_ 'delete'}} + +template(name="editCardStartDatePopup") + form.edit-card-start-date + .datepicker + .clear-date + a.js-clear-date {{_ 'clear'}} + .datepicker-actions + button.primary.wide.left(type="submit") {{_ 'save'}} + button.js-delete-date.negate.wide.right {{_ 'delete'}} + +template(name="editCardDueDatePopup") + form.edit-card-due-date + .datepicker + .clear-date + a.js-clear-date {{_ 'clear'}} + .datepicker-actions + button.primary.wide.left(type="submit") {{_ 'save'}} + button.js-delete-date.negate.wide.right {{_ 'delete'}} + +template(name="editCardEndDatePopup") + form.edit-card-end-date + .datepicker + .clear-date + a.js-clear-date {{_ 'clear'}} + .datepicker-actions + button.primary.wide.left(type="submit") {{_ 'save'}} + button.js-delete-date.negate.wide.right {{_ 'delete'}} diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js index 7c8ef242d..29e370b1c 100644 --- a/client/components/cards/cardDate.js +++ b/client/components/cards/cardDate.js @@ -48,12 +48,7 @@ import { onRendered() { super.onRendered(); - if (moment.isDate(this.card.getReceived())) { - this.$('.js-datepicker').datepicker( - 'setStartDate', - this.card.getReceived(), - ); - } + // DatePicker base class handles initialization with native HTML inputs } _storeDate(date) { @@ -74,9 +69,7 @@ import { onRendered() { super.onRendered(); - if (moment.isDate(this.card.getStart())) { - this.$('.js-datepicker').datepicker('setStartDate', this.card.getStart()); - } + // DatePicker base class handles initialization with native HTML inputs } _storeDate(date) { @@ -97,9 +90,7 @@ import { onRendered() { super.onRendered(); - if (moment.isDate(this.card.getStart())) { - this.$('.js-datepicker').datepicker('setStartDate', this.card.getStart()); - } + // DatePicker base class handles initialization with native HTML inputs } _storeDate(date) {