2014-11-16 - Re: Is it possible to start the menu bar with all submenus collapsed?

Header Data

From: Norberto Esteves <no***e@gmail.com>
Message Hash: 551c6f4b85d17e63df7c72e3eba0325d609824928afa44220cbee63aee46871b
Message ID: <a994a094-d1a7-4317-92fc-a08bf2dd97c5@grasehotspot.org>
Reply To: <4e3c2e62-173f-4daf-a79c-761ae0c1a2ec@grasehotspot.org>
UTC Datetime: 2014-11-16 04:53:04 UTC
Raw Date: Sun, 16 Nov 2014 03:53:04 -0800

Raw message

I found a way:

On radmin.js replace this portion of code:

        $(".submenu").each(function(){
            thisid = $(this).attr('id');
            cookievalue = $.cookie(thisid);
            if(cookievalue == 'collapsed'){
                collapse(thisid, 1);
             
            }else{
                expand(thisid);            
            }
        });


With:

        $(".submenu").each(function(){
        thisid = $(this).attr('id');
            cookievalue = $.cookie(thisid);
            if(cookievalue == 'expanded'){
                expand(thisid);
             
            }else{
                collapse(thisid,1);            
            }
        });

Regards,

Norberto Esteves

Domingo, 16 de Novembro de 2014 11:06:54 UTC, Norberto Esteves escreveu:
>
> Hi everybody!
>
> First off all tanks to Tim for the great job he did with the development 
> of this great hotspot software.
>
> I'm testing the features and I'd like to know if it is possible to start 
> with the submenu items collapsed (hiden). how to do that?
> I was looking to the menubar.tpl code and could't find a way...
> If I collapse all submenu items manually and then logoff they stay hidden 
> for a while because of the cookies. But then they go back to default when 
> cookies expires.  
>
> Can someone help me?
>
> Regards,
>
> Norberto Esteves
>

Thread