From: lakshya Date: Wed, 21 Aug 2013 20:20:43 +0000 (-0700) Subject: Increase the number of rows per page to 10 for a popout. X-Git-Tag: releasepom-0.1.0~193 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=49f3289c50a202080d982ead56c1d3fd20364ad1 Increase the number of rows per page to 10 for a popout. Change-Id: Ia516bc3f76b7e03ecd302c006cda2bc8662fe8f5 Signed-off-by: lakshya --- diff --git a/opendaylight/web/devices/src/main/resources/js/page.js b/opendaylight/web/devices/src/main/resources/js/page.js index 824d2e9b85..cf4d234d17 100644 --- a/opendaylight/web/devices/src/main/resources/js/page.js +++ b/opendaylight/web/devices/src/main/resources/js/page.js @@ -166,7 +166,8 @@ one.f.switchmanager.nodesLearnt = { searchable: true, filterable: false, pagination: true, - flexibleRowsPerPage: true + flexibleRowsPerPage: true, + popout: true }, "table-striped table-condensed"); one.lib.modal.inject.body($modal, $gridHTML); $modal.on("shown", function() { @@ -222,7 +223,8 @@ one.f.switchmanager.nodesLearnt = { searchable: true, filterable: false, pagination: true, - flexibleRowsPerPage: true + flexibleRowsPerPage: true, + popout: true }, "table-striped table-condensed"); one.lib.modal.inject.body($modal, $gridHTML); // attach to shown event of modal diff --git a/opendaylight/web/root/src/main/resources/js/lib.js b/opendaylight/web/root/src/main/resources/js/lib.js index 9c71262745..90fd49772a 100644 --- a/opendaylight/web/root/src/main/resources/js/lib.js +++ b/opendaylight/web/root/src/main/resources/js/lib.js @@ -99,7 +99,7 @@ one.lib.dashlet = { $headerth.append(one.lib.dashlet.datagrid._searchable()); } if(options.flexibleRowsPerPage == true) { - $footerth.append(one.lib.dashlet.datagrid._rowsPerPage()); + $footerth.append(one.lib.dashlet.datagrid._rowsPerPage(options.popout)); } if(options.pagination == true) { $footerth.append(one.lib.dashlet.datagrid._pagination()); @@ -120,8 +120,12 @@ one.lib.dashlet = { var html = ''; return html; }, - _rowsPerPage: function() { - var html = ''; + _rowsPerPage: function(popout) { + if(popout) { + var html = ''; + } else { + var html = ''; + } return html; } },