Skip to content

Commit

Permalink
Fixed Refresh and delete issues with network route table page
Browse files Browse the repository at this point in the history
Change-Id: I0cc2c49303d7daefc041e3d4646378bb60fd8d51
Closes-bug: #1619669
Closes-bug: #1619657
  • Loading branch information
sbavanasi committed Nov 8, 2016
1 parent 2a0ac87 commit 4e38e26
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -297,11 +297,14 @@ define([
];
}

function getActiveRouteTableTabIndex() {
return $('#' + ctwl.RT_TABLE_TAB_ID).tabs('option', 'active');
}

function getHeaderActionConfig(tabText) {
var rtTableName = getRtTableDisplayName();
var tabId = $('#rt-table-tab').tabs('option', 'active');
var tabText = 'Tab' + tabId.toString();
gridElId = elId + 'Tab' + tabId.toString();
var headerActionConfig = [
{
"type": "link",
Expand All @@ -310,6 +313,8 @@ define([
"linkElementId": 'btnActionDelRtTable' + tabText,
"onClick": function() {
var rtTableModel = new RtTableModel();
tabId = getActiveRouteTableTabIndex();
gridElId = elId + 'Tab' + tabId.toString();
var checkedRows =
$(gridElId).data("contrailGrid").getCheckedRows();

Expand All @@ -332,6 +337,8 @@ define([
"onClick": function() {
var projFqn = [getCookie('domain'),
getCookie('project')];
tabId = getActiveRouteTableTabIndex();
gridElId = elId + 'Tab' + tabId.toString();
rtTableModel = new RtTableModel();
rtTableEditView.model = rtTableModel;
rtTableEditView.renderConfigureRtTable({
Expand Down

0 comments on commit 4e38e26

Please sign in to comment.