[9.2.26] nettoyage

This commit is contained in:
Fred Tempez 2020-03-24 17:49:52 +01:00
parent 6d200124fd
commit d8daa26b32

View File

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