Skip to content

Commit

Permalink
Merge pull request #26 from youjenli/JENKINS-26287-console-outline-ov…
Browse files Browse the repository at this point in the history
…erlaps-console-output

JENKINS-26287 Prevent the console-outline to overlap the console output
  • Loading branch information
gezerk committed Feb 18, 2016
2 parents 42d3e2b + cb65f9c commit bdc6327
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Expand Up @@ -30,7 +30,9 @@ THE SOFTWARE.
<td class='pane-header'>${%Executed Gradle Tasks}</td>
</tr>
<tr>
<td id='console-outline-body' />
<td id='console-outline-body'>
<ul></ul>
</td>
</tr>
</table>
</l:ajax>
Expand Down
Expand Up @@ -14,7 +14,8 @@
rootURL + "/descriptor/hudson.plugins.gradle.GradleTaskNote/outline",
{insertion: Insertion.Bottom, onComplete: function() {
if (!u.success()) return; // we can't us onSuccess because that kicks in before onComplete
outline = document.getElementById("console-outline-body");
outline = document.getElementById("console-outline-body")
.getElementsByTagName('ul')[0];
loading = false;
queue.each(handle);
}});
Expand All @@ -27,7 +28,7 @@
queue.push(e);
} else {
var id = "gradle-task-" + (iota++);
outline.appendChild(parseHtml("<li><a href='#" + id + "'>" + e.innerHTML + "</a></li>"))
outline.appendChild(parseHtml("<li><a href='#" + id + "'>" + e.innerHTML + "</a></li>"));

if (document.all)
e.innerHTML += '<a name="' + id + '"/>'; // IE8 loses "name" attr in appendChild
Expand Down
@@ -0,0 +1,8 @@
#console-outline-body ul {
padding-left:5%;
word-wrap:break-word;
}

#console-outline-body ul li a {
word-break:break-all;
}

0 comments on commit bdc6327

Please sign in to comment.