mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
- completed the implementation of truncated lists (Trac #61) - Fixed the handling of the search form in the details page (Trac #29) SVN:trunk[214]
20 lines
659 B
JavaScript
20 lines
659 B
JavaScript
// Some general purpose JS functions for the iTop application
|
|
/**
|
|
* Reload a truncated list
|
|
*/
|
|
function ReloadTruncatedList(divId, sSerializedFilter, sExtraParams)
|
|
{
|
|
$('#'+divId).addClass('loading');
|
|
//$('#'+divId).blockUI();
|
|
$.get('ajax.render.php?filter='+sSerializedFilter+'&style=list',
|
|
{ operation: 'ajax', extra_params: sExtraParams },
|
|
function(data){
|
|
$('#'+divId).empty();
|
|
$('#'+divId).append(data);
|
|
$('#'+divId).removeClass('loading');
|
|
$('#'+divId+' .listResults').tablesorter( { headers: { 0:{sorter: false }}, widgets: ['zebra']} ); // sortable and zebra tables
|
|
//$('#'+divId).unblockUI();
|
|
}
|
|
);
|
|
}
|