lib/views/explore/explore.erb in mongo3-0.0.9 vs lib/views/explore/explore.erb in mongo3-0.1.0

- old
+ new

@@ -88,10 +88,15 @@ }, onCreateLabel: function(domElement, node){ domElement.innerHTML = truncate( unescape(node.name), 15 ); + $(domElement).attr('title', node.name ); + $(domElement).css('z-index', 10 ); + $(domElement).tipTip( {maxWidth:'auto', edgeOffset:5} ); + + addEvent(domElement, 'click', function () { var children_count = 0; for( var i in node.adjacencies ) children_count += 1; @@ -126,10 +131,15 @@ type: 'GET', url: "/explore/update_crumb/" + node.data.path_ids + "/" + node.data.path_names }); } }); } else { - Log.write( "no more data" ); + Log.write( "loading collection..." ); + $.ajax( { + dataType: 'script', + type: 'GET', + url: "/explore/show/" + escape(node.data.path_ids) + "/" + escape(node.data.path_names) + }); } } }); }, \ No newline at end of file