MCPcopy Create free account
hub / github.com/KDAB/codebrowser / computePPCondTooltipContent

Function computePPCondTooltipContent

data/codebrowser.js:877–899  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

875 var ppcondItems = highlighted_items;
876 var currentLine = elem.parents("tr").find("th").text();
877 function computePPCondTooltipContent() {
878 var tt = tooltip.tooltip;
879 tt.empty();
880
881 var contents = $("<ul class='ppcond'/>");
882 ppcondItems.each(function() {
883 var p = $(this).parent();
884 var l = p.parents("tr").find("th").text();
885 var t = p.text();
886 while (t[t.length - 1] === '\\') {
887 p = p.parent().parent().next().find("u");
888 if (p.length !== 1)
889 break;
890 t = t.slice(0, t.length-1) + "\n" + p.text();
891 }
892 if (currentLine === l) {
893 contents.append($("<li/>").text(t));
894 } else {
895 contents.append($("<li/>").append($("<a href='#" + l + "' />").text(t)));
896 }
897 });
898 tt.append(contents);
899 }
900 tooltip.showAfterDelay(elem, computePPCondTooltipContent);
901 }
902

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected