forked from ZwiiCMS-Team/ZwiiCMS
gallery 2.3 désactivation du drag and drop incomplet si pas de tri manuel
This commit is contained in:
parent
54a888f25e
commit
ab619ab0be
@ -71,10 +71,10 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
$("#galleryEditSort").change(function() {
|
$("#galleryEditSort").change(function() {
|
||||||
if ($("#galleryEditSort").val() !== "SORT_HAND") {
|
if ($("#galleryEditSort").val() !== "SORT_HAND") {
|
||||||
$("#galleryTable > tbody > tr").addClass("nodrag");
|
$("#galleryTable tr").addClass("nodrag nodrop");
|
||||||
$("#galleryTable").tableDnDUpdate();
|
$("#galleryTable").tableDnDUpdate();
|
||||||
} else {
|
} else {
|
||||||
$("#galleryTable > tbody > tr").removeClass("nodrag");
|
$("#galleryTable tr").removeClass("nodrag nodrop");
|
||||||
$("#galleryTable").tableDnDUpdate();
|
$("#galleryTable").tableDnDUpdate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user