From d8daa26b323e5e3cd900942cfdb83c08c65997ce Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 24 Mar 2020 17:49:52 +0100 Subject: [PATCH] [9.2.26] nettoyage --- module/gallery/view/config/config.js.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/module/gallery/view/config/config.js.php b/module/gallery/view/config/config.js.php index 80bef565..9a3bd84c 100644 --- a/module/gallery/view/config/config.js.php +++ b/module/gallery/view/config/config.js.php @@ -63,19 +63,3 @@ directoryDOM.on("change", function() { }); -/** - * Tri dynamique de la galerie - */ -$( document ).ready(function() { - var $tbody = $('#galleryTable tbody'); - $tbody.find('tr').sort(function (a, b) { - var tda = $(a).find('td.pos3:eq(0)').text(); - var tdb = $(b).find('td.pos3:eq(0)').text(); - // if a < b return 1 - return tda > tdb ? 1 - // else if a > b return -1 - : tda < tdb ? -1 - // else they are equal - return 0 - : 0; - }).appendTo($tbody); -}); \ No newline at end of file