mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
Inefficient to call Behaviour.applySubtree on rows we added earlier.
This commit is contained in:
1 parent
c9bb2bb3d3
commit
335aa624a5
1 file changed
+19
-19
@@ -48,26 +48,26 @@ THE SOFTWARE.
|
||||
var p = $$('projectStatus');
|
||||
for (var x = 0; data.length > x; x++) {
|
||||
var e = data[x];
|
||||
p.
|
||||
insert(new Element('tr').
|
||||
insert(new Element('td', {data: e.iconColorOrdinal}).
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.url}).
|
||||
insert(new Element('img', {src: '${imagesURL}/${iconSize}/' + e.buildStatusUrl, alt: e.iconColorDescription, 'class': 'icon${iconSize}'})))).
|
||||
insert(new Element('td').
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.parentUrl, 'class': 'model-link'}).
|
||||
update(e.parentFullDisplayName)).
|
||||
insert('\u00A0').
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.url, 'class': 'model-link inside'}).
|
||||
update(e.displayName.escapeHTML()))).
|
||||
insert(new Element('td', {data: e.timestampString2, tooltip: '${%Click to center timeline on event}', onclick: 'javascript:tl.getBand(0).scrollToCenter(Timeline.DateTime.parseGregorianDateTime("' + e.timestampString2 + '"))'}).
|
||||
update(e.timestampString.escapeHTML())).
|
||||
insert(new Element('td', {style: e.buildStatusSummaryWorse ? 'color: red' : ''}).
|
||||
update(e.buildStatusSummaryMessage.escapeHTML())).
|
||||
insert(new Element('td').
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.url + 'console'}).
|
||||
insert(new Element('img', {src: '${imagesURL}/${subIconSize}/terminal.png', alt: '${%Console output}', border: 0})))));
|
||||
var tr = new Element('tr').
|
||||
insert(new Element('td', {data: e.iconColorOrdinal}).
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.url}).
|
||||
insert(new Element('img', {src: '${imagesURL}/${iconSize}/' + e.buildStatusUrl, alt: e.iconColorDescription, 'class': 'icon${iconSize}'})))).
|
||||
insert(new Element('td').
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.parentUrl, 'class': 'model-link'}).
|
||||
update(e.parentFullDisplayName)).
|
||||
insert('\u00A0').
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.url, 'class': 'model-link inside'}).
|
||||
update(e.displayName.escapeHTML()))).
|
||||
insert(new Element('td', {data: e.timestampString2, tooltip: '${%Click to center timeline on event}', onclick: 'javascript:tl.getBand(0).scrollToCenter(Timeline.DateTime.parseGregorianDateTime("' + e.timestampString2 + '"))'}).
|
||||
update(e.timestampString.escapeHTML())).
|
||||
insert(new Element('td', {style: e.buildStatusSummaryWorse ? 'color: red' : ''}).
|
||||
update(e.buildStatusSummaryMessage.escapeHTML())).
|
||||
insert(new Element('td').
|
||||
insert(new Element('a', {href: '${jobBaseUrl}' + e.url + 'console'}).
|
||||
insert(new Element('img', {src: '${imagesURL}/${subIconSize}/terminal.png', alt: '${%Console output}', border: 0}))));
|
||||
p.insert(tr);
|
||||
Behaviour.applySubtree(tr);
|
||||
}
|
||||
Behaviour.applySubtree(p);
|
||||
}
|
||||
</script>
|
||||
<j:new var="handler" className="jenkins.widgets.BuildListTable"/>
|
||||
|
||||
Reference in new issue
Block a user