includes/clientside/static/login.js
changeset 741 a216e412c439
parent 728 067a6173820c
child 779 609e35845ec3
equal deleted inserted replaced
740:098e744df928 741:a216e412c439
    17     return true;
    17     return true;
    18   if ( auth_level >= USER_LEVEL_MEMBER )
    18   if ( auth_level >= USER_LEVEL_MEMBER )
    19     return true;
    19     return true;
    20   ajaxLoginInit(function(k)
    20   ajaxLoginInit(function(k)
    21     {
    21     {
    22       window.location.reload();
    22       if ( on_main_page )
       
    23       {
       
    24         window.location = makeUrl(main_page_members);
       
    25       }
       
    26       else
       
    27       {
       
    28         window.location.reload();
       
    29       }
    23     }, USER_LEVEL_MEMBER);
    30     }, USER_LEVEL_MEMBER);
    24 }
    31 }
    25 
    32 
    26 /**
    33 /**
    27  * Authenticates to the highest level the current user is allowed to go to.
    34  * Authenticates to the highest level the current user is allowed to go to.