From 0e182ce5ab2c3c06a4f37349075a42b02e3e0283 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 12 Apr 2020 18:49:42 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9sactiver=20les=20ic=C3=B4nes=20de=20tri?= =?UTF-8?q?=20dans=20l'=C3=A9dition=20des=20images=20de=20la=20galerie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/view/edit/edit.js.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module/gallery/view/edit/edit.js.php b/module/gallery/view/edit/edit.js.php index 16f5f529..0f62c949 100644 --- a/module/gallery/view/edit/edit.js.php +++ b/module/gallery/view/edit/edit.js.php @@ -67,14 +67,27 @@ $( document ).ready(function() { }, serializeRegexp: "[^\_]*$" }); + + if ($("#galleryEditSort").val() !== "SORT_HAND") { + $("#galleryTable tr").addClass("nodrag nodrop"); + $(".zwiico-sort").hide(); + $("#galleryTable").tableDnDUpdate(); + } else { + $("#galleryTable tr").removeClass("nodrag nodrop"); + $(".zwiico-sort").show(); + $("#galleryTable").tableDnDUpdate(); + } + }); $("#galleryEditSort").change(function() { if ($("#galleryEditSort").val() !== "SORT_HAND") { $("#galleryTable tr").addClass("nodrag nodrop"); + $(".zwiico-sort").hide(); $("#galleryTable").tableDnDUpdate(); } else { $("#galleryTable tr").removeClass("nodrag nodrop"); + $(".zwiico-sort").show(); $("#galleryTable").tableDnDUpdate(); } });