@@ -228,20 +228,19 @@ var loadCommit = function(commitObject, currentRef) {
228
228
while ( filelist . hasChildNodes ( ) )
229
229
filelist . removeChild ( filelist . lastChild ) ;
230
230
showRefs ( ) ;
231
- removeParentsFromCommitHeader ( ) ;
232
231
233
232
// Scroll to top
234
233
scroll ( 0 , 0 ) ;
235
234
236
- if ( ! commit . parents )
237
- return ;
238
-
239
- for ( var i = 0 ; i < commit . parents . length ; i ++ ) {
240
- var newRow = $ ( "commit_header" ) . insertRow ( - 1 ) ;
241
- newRow . innerHTML = "<td class='property_name'>Parent:</td><td>" +
242
- "<a class='SHA commit-link' href=''>" +
243
- commit . parents [ i ] . SHA ( ) + "</a></td>" ;
244
- bindCommitSelectionLinks ( newRow ) ;
235
+ var parentsNode = $ ( " parents" ) ;
236
+ parentsNode . innerHTML = '' ;
237
+ if ( commit . parents ) {
238
+ for ( var i = 0 ; i < commit . parents . length ; i ++ ) {
239
+ var container = document . createElement ( "span" ) ;
240
+ container . innerHTML = '<a class="SHA commit-link" href="">' + commit . parents [ i ] . SHA ( ) + "</a>" ;
241
+ parentsNode . appendChild ( container ) ;
242
+ }
243
+ bindCommitSelectionLinks ( parentsNode ) ;
245
244
}
246
245
247
246
commit . notificationID = setTimeout ( function ( ) {
@@ -252,16 +251,6 @@ var loadCommit = function(commitObject, currentRef) {
252
251
253
252
}
254
253
255
- var removeParentsFromCommitHeader = function ( ) {
256
- for ( var i = 0 ; i < $ ( "commit_header" ) . rows . length ; ++ i ) {
257
- var row = $ ( "commit_header" ) . rows [ i ] ;
258
- if ( row . innerHTML . match ( / P a r e n t : / ) ) {
259
- row . parentNode . removeChild ( row ) ;
260
- -- i ;
261
- }
262
- }
263
- } ;
264
-
265
254
var showMultipleSelectionMessage = function ( messageParts ) {
266
255
jQuery ( "#commit" ) . hide ( ) ;
267
256
jParagraphs = jQuery . map ( messageParts , function ( message ) {
0 commit comments