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:
Denis Flaven
2016-03-09 18:05:14 +00:00
parent daa090d4fe
commit 67c92ab946
4 changed files with 89 additions and 2 deletions

View File

@@ -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;