Merge branch 'master' into dev10
This commit is contained in:
commit
ea7b997551
@ -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);
|
||||
});
|
Loading…
Reference in New Issue
Block a user