Keep last row in position even after filtering

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

No files matched your search

+1 -1
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;
+5
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
+2 -2
View File
File diff suppressed because one or more lines are too long.
+5
View File
@@ -72,5 +72,10 @@ $.tablesorter.addWidget({
}
}
$('tbody .static-last', table).each(function() {
var row = $(this).detach();
row.appendTo($('tbody', table));
});
}
});