Fix for loadCommitInfo.
[catagits/Gitalist.git] / 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() {