Skip to content

Commit

Permalink
Fix for loadCommitInfo.
Browse files Browse the repository at this point in the history
Only call _loadCommitInfo when there are corresponding elements to
update.
  • Loading branch information
Dan Brook committed Aug 1, 2010
1 parent cce03a8 commit 7552a39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion root/static/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 70,9 @@ function _loadCommitInfo(cells) {
}

function loadCommitInfo() {
_loadCommitInfo( jQuery('#commit-tree .message').get() );
var cells = jQuery('#commit-tree .message').get();
if(cells.length > 0)
_loadCommitInfo( cells );
}

jQuery(function() {
Expand Down

0 comments on commit 7552a39

Please sign in to comment.