Skip to content

Commit

Permalink
Fixed issue: Question organizer not working
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 1, 2022
1 parent 3bc7611 commit 6559439
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions third_party/jquery-nestedSortable/jquery.mjs.nestedSortable.js
Expand Up @@ -18,7 +18,7 @@
// AMD. Register as an anonymous module.
define([
"jquery",
"jquery-ui/sortable"
"jquery-ui/ui/sortable"
], factory );
} else {

Expand Down Expand Up @@ -262,6 +262,12 @@
childLevels = this._getChildLevels(this.helper);
newList = document.createElement(o.listType);

// dragDirection object is required by jquery.ui.sortable.js 1.13+
this.dragDirection = {
vertical: this._getDragVerticalDirection(),
horizontal: this._getDragHorizontalDirection()
};

//Rearrange
for (i = this.items.length - 1; i >= 0; i--) {

Expand Down Expand Up @@ -338,7 +344,7 @@
.addClass(o.expandedClass);

self.refreshPositions();
self._trigger("expand", event, self._uiHash());
self._trigger("expand", event, [self._uiHash(), itemElement]);
}, o.expandOnHover);
}
}
Expand Down Expand Up @@ -772,7 +778,7 @@
depth--;
}

id = ($(item).attr(o.attribute || "id")).match(o.expression || (/(.+)[-=_](.+)/));
id = ($(item).attr(o.attribute || "id") || "").match(o.expression || (/(.+)[-=_](.+)/));

if (depth === sDepth) {
pid = o.rootID;
Expand Down

0 comments on commit 6559439

Please sign in to comment.