Skip to content

Instantly share code, notes, and snippets.

@marvinthepa
Created July 15, 2015 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marvinthepa/a04c75276ad605c87418 to your computer and use it in GitHub Desktop.
Save marvinthepa/a04c75276ad605c87418 to your computer and use it in GitHub Desktop.
(function() {
toggleQuickFilter = GH.Components.QuickFilters.prototype.toggleQuickFilter;
GH.Components.QuickFilters.prototype.toggleQuickFilter = function(event, button) {
var title = $(button).attr('title');
if (!$(button).hasClass('ghx-active') && title !== undefined && title.match(/RADIOBUTTON/)) {
GH.Components.QuickFilters.prototype.clearFilters();
}
toggleQuickFilter.apply(this, Array.prototype.slice.call(arguments));
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment