gallery 2.3 désactivation du drag and drop incomplet si pas de tri manuel

This commit is contained in:
Fred Tempez 2020-04-11 20:03:59 +02:00
parent 54a888f25e
commit ab619ab0be

View File

@ -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();
}
});