Commit 8298c2b7 authored by Marco Borromeo's avatar Marco Borromeo
Browse files

Changing the default rendered tab if hide_active_users is set

parent 8500bca3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -65,6 +65,10 @@
    resizeViewport();
    $(window).resize(resizeViewport);

    if(!#{current_namespace.active_users_available.to_s}) {
      $('#tabs li:first').trigger('click');
    }
    
    if(window.location.hash){
      $('#tabs li.dashboard[rel="'+window.location.hash.slice(1)+'"]').trigger('click');
    }