mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 06:58:49 +02:00
Enhancement: prevent reloading a list while the configuration dialog is open.
SVN:trunk[2206]
This commit is contained in:
30
js/utils.js
30
js/utils.js
@@ -74,16 +74,26 @@ function TruncateList(divId, iLimit, sNewLabel, sLinkLabel)
|
||||
*/
|
||||
function ReloadBlock(divId, sStyle, sSerializedFilter, sExtraParams)
|
||||
{
|
||||
$('#'+divId).block();
|
||||
//$('#'+divId).blockUI();
|
||||
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php?style='+sStyle,
|
||||
{ operation: 'ajax', filter: sSerializedFilter, extra_params: sExtraParams },
|
||||
function(data){
|
||||
$('#'+divId).empty();
|
||||
$('#'+divId).append(data);
|
||||
$('#'+divId).removeClass('loading');
|
||||
}
|
||||
);
|
||||
// Check if the user is not editing the list properties right now
|
||||
var bDialogOpen = false;
|
||||
var oDataTable = $('#'+divId+' :itop-datatable');
|
||||
if (oDataTable.length > 0)
|
||||
{
|
||||
bDialogOpen = oDataTable.datatable('IsDialogOpen');
|
||||
}
|
||||
if (!bDialogOpen)
|
||||
{
|
||||
$('#'+divId).block();
|
||||
|
||||
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php?style='+sStyle,
|
||||
{ operation: 'ajax', filter: sSerializedFilter, extra_params: sExtraParams },
|
||||
function(data){
|
||||
$('#'+divId).empty();
|
||||
$('#'+divId).append(data);
|
||||
$('#'+divId).removeClass('loading');
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user