CORE-228 Close zero tabs

Previously hash url was not updated correctly when closing a tab.
Gotcha. The code isn't exactly the same, which is partly why that didn't
click for me. But I see how it accomplishes the same objective. Nice work
Anze!

On Mon, Oct 27, 2014 at 10:47 AM, Anže Pečar <notifications@github.com>
wrote:

> In src/ggrc/assets/javascripts/controllers/dashboard_controller.js:
>
> > @@ -598,11 +598,8 @@ can.Control("CMS.Controllers.InnerNav", {
> >            widgets = this.options.widget_list;
> >
> >        widget.attr('force_show', false);
> > -      this.update_add_more_link();
> > -      if (widget.selector === active_widget.selector) {
> > -        this.options.contexts.attr("active_widget", widgets[0]);
> > -      }
> > -      this.show_active_widget();
> > +      this.route(widgets[0].selector); // Switch to the first widget
>
> this.route does everything that was deleted here and it also changes the
> hash url to the correct widget.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/reciprocity/ggrc-core/pull/1936/files#r19423036>.
>