         log_router '/databases/' + id
         clear_modals()
         database = databases.get(id)
-        
+
         @current_view.destroy()
         if database? then @current_view = new DatabaseView.Container model: database
         else @current_view = new DatabaseView.NotFound id

            @$container.html @current_view.render(tab).el
        else
            @$container.html @current_view.render().el
        
        if namespace?
            @current_view.shards.render_data_repartition()


# Extend Backbone View
Backbone.View.prototype.destroy = ->
    return

