gtbu / Typesetter-5.3-p8

Typesetter 5.2+ with updates and adaptions for php8
http://typesetter5.bplaced.net
GNU General Public License v2.0
11 stars 7 forks source link

Drag and Drop in page manager #10

Closed creisi23 closed 1 year ago

creisi23 commented 1 year ago

It seems, that it's not possible to drag and drop pages in Page Manager. The console says: Uncaught TypeError: this.dragDirection is undefined.

creisi23 commented 1 year ago

A more detailed error message: Uncaught TypeError: this.dragDirection is undefined jQuery 3 _intersectsWithPointer prop prop _mouseDrag https://example.com/include/thirdparty/js/nestedSortable.js?v=5.3-p8 b3:89 jQuery 10 prop _mouseStart prop prop _mouseMove prop prop _mouseMoveDelegate dispatch handle

gtbu commented 1 year ago

Sorry - i have no problems with that under Xampp but in the web. It may also be a jquery 3 problem.

creisi23 commented 1 year ago

Have tested it with Firefox, Chromium and Palemoon under localhost on a linux system and in the web on different hosting providers. Didn't work with all combinations.

gtbu commented 1 year ago

I tested all versions of nested-sortable with the same result . Uncaught TypeError: this.dragDirection is undefined

I must first make a TP5.2 installation in the web - under xampp and Tp 5.2 or Tp 5.3 everything functions. Maybe its new Jquery ui 13.2 because the original name is jquery.ui.nestedSortable.js . I must test the beta 2 for that in the web.

*** There were deprecations in sortable.js for ui 12.1 Exchange of sortable.js with the version1.11.4 (jQuery UI Sortable 1.11.4) of my CE5.11 (or TP5.2) seems to help, hopefully also for You. Strange is only that it functions under Xampp, und that the above function this.dragDirection exists in line 437 of sortable.js ui 13.2 with parameters vertical and horizontal ........ while it doesnt exist in the functioning 11.4

gtbu commented 1 year ago

*** Solution : Replacement of nestedSortable.js version 1.34 against version 2.1a (master) solves the problem. In this newest version this.dragDirection is used and so the type-error disappears. ( please activate intl - extension for Typesetter 5.3 b3 in Xammp php.ini)

creisi23 commented 1 year ago

Yes, it works now. Thank you.