Search
Other Advanced Module Manager questions
Forum

Dragging list items in K2 Content Module doesn't work with AMM active

Brian Peat's Avatar Brian Peat
Hi there,

In the K2 Content Module, it's possible to manually select a number of items, and manually arrange their order using the JUI sortable library.

Using K2 v 2.10.2, Joomla 3.9.14 and AMM 7.12.3 attempting to move a list item causes items below the one you're trying to move sliding off the bottom of the screen, while not allowing you to move the selected item at all.

This does not occur in the standard Joomla module manager.

As soon as dragging is attempted, the console fills with errors like this:
jquery.ui.sortable.min.js?382eb290b80cfb768103a6d44ad98f57:17 Uncaught TypeError: a.ui.isOverAxis is not a function at b.<computed>.<computed>._intersectsWithPointer (jquery.ui.sortable.min.js?382eb290b80cfb768103a6d44ad98f57:17) at b.<computed>.<computed>._intersectsWithPointer (jquery.ui.core.min.js?382eb290b80cfb768103a6d44ad98f57:5) at b.<computed>.<computed>._mouseDrag (jquery.ui.sortable.min.js?382eb290b80cfb768103a6d44ad98f57:17) at b.<computed>.<computed>._mouseDrag (jquery.ui.core.min.js?382eb290b80cfb768103a6d44ad98f57:5) at b.<computed>.<computed>._mouseStart (jquery.ui.sortable.min.js?382eb290b80cfb768103a6d44ad98f57:17) at b.<computed>.<computed>._mouseStart (jquery.ui.core.min.js?382eb290b80cfb768103a6d44ad98f57:5) at b.<computed>.<computed>._mouseMove (jquery.ui.core.min.js?382eb290b80cfb768103a6d44ad98f57:5) at b.<computed>.<computed>._mouseMove (jquery.ui.core.min.js?382eb290b80cfb768103a6d44ad98f57:5) at HTMLDocument._mouseMoveDelegate (jquery.ui.core.min.js?382eb290b80cfb768103a6d44ad98f57:5) at HTMLDocument.dispatch (jquery.min.js?382eb290b80cfb768103a6d44ad98f57:2)

While it's possible to switch back to core module manager to manage sorting, and then back to AMM for everything else, it's not ideal.
Peter van Westen's Avatar Peter van Westen ADMIN
Probably the K2 module is loading things that is causing conflict.
Can you give me (super) admin so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Hidden text' button in the forum editor to hide the confidential information.
Please post a rating at the Joomla! Extensions Directory
Adam BFH's Avatar Adam BFH
I've been having this same issue and so haven't been able to upgrade since 7.11. Was there a solution for this? It seems to be related to jquery.ui.sortable.min.js which doesn't appear to load in the core module manager. Thanks.
Peter van Westen's Avatar Peter van Westen ADMIN
So this is down to an incompatibility between the K2 module and the Joomla core jquery.ui.sortable.min.js file.
You should ask K2 support about that.
Please post a rating at the Joomla! Extensions Directory
Adam BFH's Avatar Adam BFH
Thanks Peter. It's just strange as the file isn't loaded at all when using Joomla's core module manager.
Peter van Westen's Avatar Peter van Westen ADMIN
Yes, so Advanced Module Manager needs the sortable file (used for the Article Fields assignments). And the K2 module seems to load other scripts that conflict with that.
Please post a rating at the Joomla! Extensions Directory
Adam BFH's Avatar Adam BFH
Understood. It seems that neither plugin is specifically to blame but there's a conflict between the two. This is a paid product where as K2 is free so I don't expect I'll rececive much help their end. Are you able to offer any guidance at all please? I'm comfortable with modifying any files.
Peter van Westen's Avatar Peter van Westen ADMIN
It is actually a conflict between the K2 module and a core Joomla javascript file.
So you decide who should fix things.

If you will never use the Articles assignment, you could switch that off in the Advanced Module Manager global settings. That will prevent that script from loading too.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription