" + cname + "" : "")+
(c.prose ? "(pro se)" : "") +
(c.lead ? "(lead counsel)" : "") +
"
";
// (c.firm ? "
" + c.firm + "" : "")
var address = c.address && c.address.length ? c.address:
c.other && c.other.length ? c.other: [];
for(var o_i=0; address && o_i < address.length; o_i++) {
html += "
" + address[o_i] + "";
}
html += "";
}
html += "";
}
var title =
!name ? "Counsel for unspecified party":
is_itc ? "Counsel Filing on Behalf Of " + party_type_html + wrap_html(name, "span", "name"):
"Counsel for " + party_type_html + wrap_html(name, "span", "name");
if(p.counsel.length > 12) {
title += " (" + p.counsel.length + " total)";
}
title += party_ana_link;
return "
" +
"
" +
"
" + title + "" +
close_btn + "" + html + "";
}
function add_counsel_copy() {
function _get_text() {
var out = '';
$(".counsel_block").each(function(c_i, c) {
out += $(c).find(".counsel_title").text() + "\n";
// Iterate over all law firms
$(c).find(".firm .title").each(function(i, obj) {
out += $(obj).text() + "\n";
// The counsels are in the next element
obj = obj.nextElementSibling;
$(obj).find(".counsel").each(function(j, counsel) {
var $counsel = $(counsel);
out += $counsel.find(".cname").text() + "\n";
$counsel.find(".contact div").each(function(q, contact) {
out += $(contact).text() + "\n";
});
out += "\n";
});
out += "\n";
})
});
return out;
}
copy_to_clipboard(".counsel_overlay .copy", function () {
// Get the citation name and remove extra spaces
return _get_text() + "\nDocket Alarm\n" + window.location.toString();
}, "Parties copied");
}
function show_party_detail(party_hash) {
// Remove the old stuff
var $docket_bd = $("#dockets_bd")
.find(".counsel_overlay").remove().end()
.find(".pname.selected")
.find(".close").remove().end()
.removeClass("selected")
.end()
.find("#docket_report").show().end()
.css('min-height', 'auto');
var party_html = '', party_idx = '', show_all = party_hash == "all";
if(show_all) {
for(var p_i in parties) {
party_html += get_party_html(p_i);
}
} else {
// Try to get the new detail
party_idx = party_hash ? party_hash.split("-")[0] : null;
party_idx = party_idx === null ? NaN : Number(party_idx);
if(isNaN(party_idx)) {
// There is none, we're done.
return;
}
party_html += get_party_html(party_idx);
}
var controls = "
" +
"" +
"