mirror of
https://github.com/wekan/wekan.git
synced 2026-01-02 15:48:49 +01:00
jquery-ui works now with touch devices
- the "old" implementation at wekan source code didn't work anymore with jquery-ui@1.13.0, so it's necessary to use another package to get it work again
This commit is contained in:
parent
292e43466e
commit
c9071a74bc
7 changed files with 10 additions and 79 deletions
|
|
@ -1,5 +1,4 @@
|
|||
const subManager = new SubsManager();
|
||||
const { calculateIndex, enableClickOnTouch } = Utils;
|
||||
|
||||
Template.boardListHeaderBar.events({
|
||||
'click .js-open-archived-board'() {
|
||||
|
|
@ -56,7 +55,7 @@ BlazeComponent.extendComponent({
|
|||
// of the previous and the following card -- if any.
|
||||
const prevBoardDom = ui.item.prev('.js-board').get(0);
|
||||
const nextBoardBom = ui.item.next('.js-board').get(0);
|
||||
const sortIndex = calculateIndex(prevBoardDom, nextBoardBom, 1);
|
||||
const sortIndex = Utils.calculateIndex(prevBoardDom, nextBoardBom, 1);
|
||||
|
||||
const boardDomElement = ui.item.get(0);
|
||||
const board = Blaze.getData(boardDomElement);
|
||||
|
|
@ -73,9 +72,6 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
});
|
||||
|
||||
// ugly touch event hotfix
|
||||
enableClickOnTouch(itemsSelector);
|
||||
|
||||
// Disable drag-dropping if the current user is not a board member or is comment only
|
||||
this.autorun(() => {
|
||||
if (Utils.isMiniScreenOrShowDesktopDragHandles()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue