1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5212: fix dropdowns on pagination (#784)

Signed-off-by: Frederick Borges <fborges@opennebula.io>
(cherry picked from commit d65510d9737e8eeaf1e63c35385e7b899eb85eab)
This commit is contained in:
Frederick Borges 2021-02-10 10:49:00 +01:00 committed by Tino Vazquez
parent 179b1eba44
commit 2ed1191622
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
2 changed files with 8 additions and 3 deletions

View File

@ -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() {

View File

@ -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) {