I modified the functions slightly due to a "bug"
(function($) {
var fn = $.paramquery._pqGrid.prototype;
fn.showLoading = function() {
//console.log("showLoading", this);
if(this.$grid_center.is(":visible"))
{
this.loading = true;
open_loading_overlay();
}
};
fn.hideLoading = function() {
//console.log("hideLoading");
this.loading = false;
close_loading_overlay();
};
})(jQuery);
If the grid is hidden and the screen size changes, for some reason "showLoading" was getting called, so I had to add the "if" statement.