1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

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

Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
Frederick Borges 2021-02-10 10:49:00 +01:00 committed by GitHub
parent 07b1656e52
commit d65510d973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
});
@ -695,7 +695,7 @@ define(function(require) {
if (that.postUpdateView) {
that.postUpdateView();
$("ul.ips-dropdown").foundation();
$(".ips-dropdown").foundation();
}
if(that.conf.searchDropdownHTML != undefined){
@ -737,7 +737,7 @@ define(function(require) {
}
});
$("ul.ips-dropdown").foundation();
$(".ips-dropdown").foundation();
}
function _getElementData(id, resource_tag) {