New implementation for displaying long lists: pagination

SVN:trunk[1294]
This commit is contained in:
Denis Flaven
2011-06-23 10:43:41 +00:00
parent 7384191fb6
commit 01a4a04364
4 changed files with 472 additions and 25 deletions

View File

@@ -39,12 +39,12 @@ function ReloadTruncatedList(divId, sSerializedFilter, sExtraParams)
if (checkbox)
{
// There is a checkbox in the first column, don't make it sortable
table.tablesorter( { headers: { 0: {sorter: false}}, widgets: ['myZebra', 'truncatedList']} ); // sortable and zebra tables
table.tablesorter( { headers: { 0: {sorter: false}}, widgets: ['myZebra', 'truncatedList']} ).tablesorterPager({container: $("#pager")}); // sortable and zebra tables
}
else
{
// There is NO checkbox in the first column, all columns are considered sortable
table.tablesorter( { widgets: ['myZebra', 'truncatedList']} ); // sortable and zebra tables
table.tablesorter( { widgets: ['myZebra', 'truncatedList']} ).tablesorterPager({container: $("#pager"), totalRows:97, filter: sSerializedFilter, extra_params: sExtraParams }); // sortable and zebra tables
}
});
$('#'+divId).unblock();
@@ -210,10 +210,15 @@ function CheckAll(sSelector, bValue)
{
var value = bValue;
$(sSelector).each( function() {
this.checked = value;
if (this.checked != value)
{
this.checked = value;
$(this).trigger('change');
}
});
}
/**
* Toggle (enabled/disabled) the specified field of a form
*/