Fix for loadCommitInfo.
Dan Brook [Mon, 3 May 2010 20:59:59 +0000 (21:59 +0100)]
Only call _loadCommitInfo when there are corresponding elements to
update.

root/static/js/site.js

index 3c748fe..076a377 100755 (executable)
@@ -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() {