X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fweb%2Fdevices%2Fsrc%2Fmain%2Fresources%2Fjs%2Fpage.js;h=96b16bf92cc2da50be0c06da2ac3e946edca8b7d;hb=9218f9edb2b7125e0c83164386cbeaa4df92193a;hp=7a2b5793267c2579da963f74eded12866c298c6e;hpb=286d94196561feb6de722b2c21a52245ae36e213;p=controller.git diff --git a/opendaylight/web/devices/src/main/resources/js/page.js b/opendaylight/web/devices/src/main/resources/js/page.js index 7a2b579326..96b16bf92c 100644 --- a/opendaylight/web/devices/src/main/resources/js/page.js +++ b/opendaylight/web/devices/src/main/resources/js/page.js @@ -18,7 +18,7 @@ one.f.dashlet = { }, staticRouteConfig : { id : 'staticRouteConfig', - name : 'Static route Configuration' + name : 'Static Route Configuration' }, subnetGatewayConfig : { id : 'subnetGatewayConfig', @@ -77,6 +77,7 @@ one.f.switchmanager.nodesLearnt = { form: { nodeId: "one_f_switchmanager_nodesLearnt_id_modal_form_nodeid", nodeName : "one_f_switchmanager_nodesLearnt_id_modal_form_nodename", + portStatus : "one_f_switchmanager_nodesLearnt_id_modal_form_portstatus", tier: "one_f_switchmanager_nodesLearnt_id_modal_form_tier", operationMode: "one_f_switchmanager_nodesLearnt_id_modal_form_opmode" } @@ -93,7 +94,6 @@ one.f.switchmanager.nodesLearnt = { $dashlet.append($table); }); }, - ajax : { main : function(url, callback) { $.getJSON(url, function(data) { @@ -105,7 +105,7 @@ one.f.switchmanager.nodesLearnt = { initialize: { updateNode: function(evt) { var nodeId = decodeURIComponent(evt.target.id); - var h3 = "Update node information"; + var h3 = "Update Node Information"; var footer = one.f.switchmanager.nodesLearnt.modal.footer.updateNode(); var $modal = one.lib.modal.spawn(one.f.switchmanager.nodesLearnt.id.modal.modal, h3, "", footer); @@ -255,6 +255,7 @@ one.f.switchmanager.nodesLearnt = { entry.push(value["tierName"]); entry.push(value["mac"]); entry.push(value["ports"]); + entry.push(value["portStatus"]); tr.entry = entry; result.push(tr); }); @@ -634,7 +635,8 @@ one.f.switchmanager.staticRouteConfig = { var body = one.f.switchmanager.staticRouteConfig.data.staticRouteConfig(content); // first column contains checkbox. no need for header content.columnNames.splice(0,0," "); - var $table = one.f.switchmanager.createTable(content.columnNames, body); + var tableHeaders = ['', 'Name', 'Static Route', 'Next Hop Address']; + var $table = one.f.switchmanager.createTable(tableHeaders, body); $dashlet.append($table); }); }, @@ -1007,4 +1009,4 @@ $('.dash .nav a', '#main').click(function() { // activate first tab on each dashlet $('.dash .nav').each(function(index, value) { $($(value).find('li')[0]).find('a').click(); -}); \ No newline at end of file +});