Keep last row in position even after filtering

This commit is contained in:
jekkos
2015-09-06 13:33:12 +02:00
parent 2b6b3914a7
commit e62df579f1
4 changed files with 13 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ function get_sales_manage_table_data_rows($sales, $controller)
}
else
{
$table_data_rows .= "<tr class='static'><td>&nbsp;</td><td>".$CI->lang->line('sales_total')."</td><td>&nbsp;</td><td>&nbsp;</td><td>".to_currency($sum_amount_tendered)."</td><td>".to_currency($sum_amount_due)."</td><td>".to_currency($sum_change_due)."</td><td colspan=\"3\"></td></tr>";
$table_data_rows .= "<tr class='static-last'><td>&nbsp;</td><td>".$CI->lang->line('sales_total')."</td><td>&nbsp;</td><td>&nbsp;</td><td>".to_currency($sum_amount_tendered)."</td><td>".to_currency($sum_amount_due)."</td><td>".to_currency($sum_change_due)."</td><td colspan=\"3\"></td></tr>";
}
return $table_data_rows;

View File

@@ -17168,6 +17168,11 @@ $.tablesorter.addWidget({
}
}
$('tbody .static-last', table).each(function() {
var row = $(this).detach();
row.appendTo($('tbody', table));
});
}
});
;/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014

View File

File diff suppressed because one or more lines are too long

View File

@@ -72,5 +72,10 @@ $.tablesorter.addWidget({
}
}
$('tbody .static-last', table).each(function() {
var row = $(this).detach();
row.appendTo($('tbody', table));
});
}
});