mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Modified the "List" tab of the Impact Analysis to display only the actually impacted objects. The content of this tab is now refreshed every time the graph is rebuilt to take into account the "context" changes which causes the actual impact to change, or the filtering.
SVN:trunk[3941]
This commit is contained in:
@@ -720,6 +720,10 @@ $(function()
|
||||
{
|
||||
this.refresh_groups(oData.groups);
|
||||
}
|
||||
if (oData.lists)
|
||||
{
|
||||
this.refresh_lists(oData.lists);
|
||||
}
|
||||
if (this.element.is(':visible'))
|
||||
{
|
||||
this._updateBBox();
|
||||
@@ -754,6 +758,25 @@ $(function()
|
||||
}
|
||||
}
|
||||
},
|
||||
refresh_lists: function(aLists)
|
||||
{
|
||||
if ($('#impacted_objects_lists').length > 0)
|
||||
{
|
||||
// The "Lists" tab is present, refresh it
|
||||
if (aLists.length == 0)
|
||||
{
|
||||
$('#impacted_objects_lists').html('');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#impacted_objects_lists').html('<img src="../images/indicator.gif">');
|
||||
var sUrl = GetAbsoluteUrlAppRoot()+'pages/ajax.render.php';
|
||||
$.post(sUrl, { operation: 'relation_lists', lists: aLists }, function(data) {
|
||||
$('#impacted_objects_lists').html(data);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
_reset_pan_and_zoom: function()
|
||||
{
|
||||
this.xPan = 0;
|
||||
|
||||
Reference in New Issue
Block a user