Skip to content

Commit

Permalink
Qoldev 569 sortable table for FireFox (#1194)
Browse files Browse the repository at this point in the history
* onpageshow

* QOLDEV-569 Updating JS to make it work on FireFox
  • Loading branch information
ghazal-salehi authored Sep 21, 2023
1 parent 0bf2929 commit 9c11bd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/assets/_project/_blocks/utils/qg-datatables.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var addQGButtonClass = function () {
$('.sortable-table .dataTables_wrapper a.paginate_button').addClass('qg-btn');
};
$(window).on('load', addQGButtonClass);
window.onpageshow = function () {
addQGButtonClass();
};
$(document).on('change', '.sortable-table select', addQGButtonClass);

0 comments on commit 9c11bd8

Please sign in to comment.