Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created May 14, 2011 14:58
Show Gist options
  • Save dchelimsky/972296 to your computer and use it in GitHub Desktop.
Save dchelimsky/972296 to your computer and use it in GitHub Desktop.
$(".log a").click(function() {
$("#panel-" + $(this).data("build_id") + ":hidden").trigger('showLog');
$("#panel-" + $(this).data("build_id") + ":visible").trigger('hideLog');
return false;
});
$(".log a").click(function() {
var panel = $("#panel-" + $(this).data("build_id"));
if (panel.css("display") == 'none') {
panel.trigger('showLog');
} else {
panel.trigger('hideLog');
}
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment