Merge branch 'master' into dev10

This commit is contained in:
Fred Tempez 2020-03-24 17:53:52 +01:00
commit ea7b997551

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