diff --git a/gui/slick/js/core.js b/gui/slick/js/core.js index 41e1ee15bd5bc87ddcc27ddadcd422aba636744d..bb8f4c274dbc6c5fb4da8e91ead037fb606c8830 100644 --- a/gui/slick/js/core.js +++ b/gui/slick/js/core.js @@ -2396,6 +2396,10 @@ var SICKRAGE = { }; }, index: function() { + $('.resetsorting').on('click', function(){ + $('table').trigger('filterReset'); + }); + $("#massUpdateTable:has(tbody tr)").tablesorter({ sortList: [[1,0]], textExtraction: { @@ -2408,7 +2412,7 @@ var SICKRAGE = { 8: function(node) { return $(node).find("img").attr("alt"); }, 9: function(node) { return $(node).find("img").attr("alt"); }, }, - widgets: ['zebra', 'filter'], + widgets: ['zebra', 'filter', 'columnSelector'], headers: { 0: { sorter: false, filter: false}, 1: { sorter: 'showNames'}, @@ -2428,8 +2432,19 @@ var SICKRAGE = { 15: { sorter: false}, 16: { sorter: false}, 17: { sorter: false} + }, + widgetOptions: { + 'columnSelector_mediaquery': false } }); + $('#popover').popover({ + placement: 'bottom', + html: true, // required if content has HTML + content: '<div id="popover-target"></div>' + }).on('shown.bs.popover', function () { // bootstrap popover event triggered when the popover opens + // call this function to copy the column selection code into the popover + $.tablesorter.columnSelector.attachTo( $('#massUpdateTable'), '#popover-target'); + }); }, backlogOverview: function() { $('#pickShow').on('change', function(){ diff --git a/gui/slick/js/core.min.js b/gui/slick/js/core.min.js index f63475a1031f0e714e1529808b520c024362f554..5207d9e5d33ab9f73718ce4b573d75552de87823 100644 Binary files a/gui/slick/js/core.min.js and b/gui/slick/js/core.min.js differ