mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-16 04:50:09 -04:00
Keep last row in position even after filtering
This commit is contained in:
@@ -54,7 +54,7 @@ function get_sales_manage_table_data_rows($sales, $controller)
|
||||
}
|
||||
else
|
||||
{
|
||||
$table_data_rows .= "<tr class='static'><td> </td><td>".$CI->lang->line('sales_total')."</td><td> </td><td> </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> </td><td>".$CI->lang->line('sales_total')."</td><td> </td><td> </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
dist/opensourcepos.js
vendored
5
dist/opensourcepos.js
vendored
@@ -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
|
||||
|
||||
4
dist/opensourcepos.min.js
vendored
4
dist/opensourcepos.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -72,5 +72,10 @@ $.tablesorter.addWidget({
|
||||
}
|
||||
}
|
||||
|
||||
$('tbody .static-last', table).each(function() {
|
||||
var row = $(this).detach();
|
||||
row.appendTo($('tbody', table));
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user