From 49f3289c50a202080d982ead56c1d3fd20364ad1 Mon Sep 17 00:00:00 2001 From: lakshya Date: Wed, 21 Aug 2013 13:20:43 -0700 Subject: [PATCH 1/1] Increase the number of rows per page to 10 for a popout. Change-Id: Ia516bc3f76b7e03ecd302c006cda2bc8662fe8f5 Signed-off-by: lakshya --- opendaylight/web/devices/src/main/resources/js/page.js | 6 ++++-- opendaylight/web/root/src/main/resources/js/lib.js | 10 +++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) 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; } }, -- 2.36.6