Skip to content

Instantly share code, notes, and snippets.

@JonnyFunFun
Last active December 19, 2015 12:49
Show Gist options
  • Save JonnyFunFun/5957992 to your computer and use it in GitHub Desktop.
Save JonnyFunFun/5957992 to your computer and use it in GitHub Desktop.
A corrected version of the Kanban Column Hider that will work globally across all projects
tau.mashups
.addDependency('libs/jquery/jquery')
.addMashup(function ($, config) {
// Put states' names that you want to hide here
var statesToHide = ["In Progress", "Fixed"];
for (var i = 0; i < statesToHide.length; i++) {
var headers = $(".kanban-swimlane-header-wrap span:contains('"+statesToHide[i]+"')").filter(function() {
return $(this).text().match("^"+statesToHide[i]) != null;
});
$.each(headers, function(idx, el) {
var header = $(el).parent();
//use header Id to construct column Id
var col = $("#" + header.id().replace("header-", ""));
//hide everything
header.hide();
col.hide();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment