mirror of
https://github.com/wekan/wekan.git
synced 2026-03-13 17:06:13 +01:00
Replace BlazeComponent mixins with standalone utility modules
Delete the old Mixins global and BlazeComponent-based InfiniteScrolling mixin. Add standalone replacements: - client/lib/infiniteScrolling.js: plain scroll-based pagination helper - client/lib/currentCard.js: centralized current card resolution - client/components/forms/datepicker.js: extracted date picker logic
This commit is contained in:
parent
2848b1a38a
commit
3b6f6fa80a
5 changed files with 180 additions and 35 deletions
16
client/components/forms/datepicker.js
Normal file
16
client/components/forms/datepicker.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import {
|
||||
setupDatePicker,
|
||||
datePickerRendered,
|
||||
datePickerHelpers,
|
||||
datePickerEvents,
|
||||
} from '/client/lib/datepicker';
|
||||
|
||||
Template.datepicker.onCreated(function () {
|
||||
setupDatePicker(this);
|
||||
});
|
||||
|
||||
Template.datepicker.onRendered(function () {
|
||||
datePickerRendered(this);
|
||||
});
|
||||
|
||||
Template.datepicker.helpers(datePickerHelpers());
|
||||
Loading…
Add table
Add a link
Reference in a new issue