diff --git a/module/gallery/view/edit/edit.js.php b/module/gallery/view/edit/edit.js.php index 73654ece..16f5f529 100644 --- a/module/gallery/view/edit/edit.js.php +++ b/module/gallery/view/edit/edit.js.php @@ -71,10 +71,10 @@ $( document ).ready(function() { $("#galleryEditSort").change(function() { if ($("#galleryEditSort").val() !== "SORT_HAND") { - $("#galleryTable > tbody > tr").addClass("nodrag"); + $("#galleryTable tr").addClass("nodrag nodrop"); $("#galleryTable").tableDnDUpdate(); } else { - $("#galleryTable > tbody > tr").removeClass("nodrag"); + $("#galleryTable tr").removeClass("nodrag nodrop"); $("#galleryTable").tableDnDUpdate(); } });