Last active
December 19, 2015 12:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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