Files
iTop/js/utils.js
Denis Flaven cc4219714a - completed the fix of the user object history (Trac #48)
- completed the implementation of truncated lists (Trac #61)
- Fixed the handling of the search form in the details page (Trac #29)

SVN:trunk[214]
2009-12-29 14:02:18 +00:00

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();
}
);
}