Created
August 2, 2015 22:06
-
-
Save ctsstc/f16f3437eb65339fd58e to your computer and use it in GitHub Desktop.
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
$('#staff_mgmt_org_chart_open_positions>tbody>tr>td>table>tbody>tr td.kc-staffchart-column').each(function(){ | |
if ($(this).text().indexOf("position closed") > -1) { | |
//$(this).css('background-color', "red"); | |
// Get the parent container and the next container with the description | |
var container = $(this).parent().parent().parent().parent().parent(); | |
var description = container.next(); | |
// Fade out closed positions and their description | |
container.css('opacity', '.4'); | |
description.css('opacity', '.4'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment