Skip to content

Commit 993a91c

Browse files
committed
fix update item when the item use UUID
1 parent 6ff8d9c commit 993a91c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vendor/assets/javascripts/jquery.mjs.nestedSortable.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,11 @@
426426

427427
$(items).each(function() {
428428
var res = ($(o.item || this).attr(o.attribute || 'id') || '')
429-
.match(o.expression || (/(.+)[-=_](.+)/)),
429+
.match(o.expression || (/(.+)[=_](.+)/)),
430430
pid = ($(o.item || this).parent(o.listType)
431431
.parent(o.items)
432432
.attr(o.attribute || 'id') || '')
433-
.match(o.expression || (/(.+)[-=_](.+)/));
433+
.match(o.expression || (/(.+)[=_](.+)/));
434434

435435
if (res) {
436436
str.push(((o.key || res[1]) + '[' + (o.key && o.expression ? res[1] : res[2]) + ']')
@@ -610,4 +610,4 @@
610610
}));
611611

612612
$.mjs.nestedSortable.prototype.options = $.extend({}, $.ui.sortable.prototype.options, $.mjs.nestedSortable.prototype.options);
613-
})(jQuery);
613+
})(jQuery);

0 commit comments

Comments
 (0)