mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
#909: faster display for the "details" of an object:
- object's history is only loaded when the "History" tab is clicked - by default the history display is truncated to the 'max_history_length' (= 50) latest modifications SVN:trunk[3145]
This commit is contained in:
10
js/utils.js
10
js/utils.js
@@ -374,4 +374,14 @@ function ShortcutListDlg(sOQL, sDataTableId, sContext)
|
||||
$('body').append(data);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function DisplayHistory(sSelector, sFilter, iCount, iStart)
|
||||
{
|
||||
$(sSelector).block();
|
||||
var oParams = { operation: 'history_from_filter', filter: sFilter, start: iStart, count: iCount };
|
||||
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php', oParams, function(data) {
|
||||
$(sSelector).html(data).unblock();
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user