diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 91d804c7a9..61361f5601 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -631,6 +631,11 @@ define(function(require) { } e.preventDefault(); }); + + // Reload foundation ips dropdown when change page on datatables + $(document).on("click", ".paginate_button", function() { + $('.ips-dropdown').foundation(); + }); }; var _setupTabs = function() { diff --git a/src/sunstone/public/app/utils/tab-datatable.js b/src/sunstone/public/app/utils/tab-datatable.js index c3f3c921b5..7b8ebd5020 100644 --- a/src/sunstone/public/app/utils/tab-datatable.js +++ b/src/sunstone/public/app/utils/tab-datatable.js @@ -214,7 +214,7 @@ define(function(require) { $('#' + this.dataTableId + 'Search').on('input', function() { that.dataTable.fnFilter($(this).val()); - $("ul.ips-dropdown").foundation(); + $(".ips-dropdown").foundation(); return false; }); @@ -699,7 +699,7 @@ define(function(require) { if (that.postUpdateView) { that.postUpdateView(); - $("ul.ips-dropdown").foundation(); + $(".ips-dropdown").foundation(); } if(that.conf.searchDropdownHTML != undefined){ @@ -741,7 +741,7 @@ define(function(require) { } }); - $("ul.ips-dropdown").foundation(); + $(".ips-dropdown").foundation(); } function _getElementData(id, resource_tag) {