1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Sort now functioning across pages

This commit is contained in:
Cameron
2013-02-06 10:22:45 -08:00
parent 3b78d19acb
commit 68f949ec7b
4 changed files with 13 additions and 9 deletions

View File

@@ -128,8 +128,8 @@ $(document).ready(function()
// Sorting
var fixHelper = function(e, ui) {
ui.closest("tr").switchClass( "odd", "highlight-odd", 0 );
ui.closest("tr").switchClass( "even", "highlight-even", 0 );
ui.closest("tr").switchClass( "odd", "highlight-odd e-sort", 0 );
ui.closest("tr").switchClass( "even", "highlight-even e-sort", 0 );
ui.children().each(function() {
$(this).width($(this).width());
// $(this).closest("tr").switchClass( "odd", "highlight-odd", 0 );
@@ -150,7 +150,9 @@ $(document).ready(function()
var newSortValue = allItems.indexOf( $(ui.item).attr("id") );
// alert($(ui.item).attr("id") + " was moved to index " + newSortValue);
$(".highlight-even").switchClass( "highlight-even", "even", 600 );
$(".highlight-odd").switchClass( "highlight-odd", "odd", 600 );
$(".highlight-odd").switchClass( "highlight-odd", "odd", 600 );
$("tr.e-sort").removeClass( "e-sort");
},
update: function(event, ui) {