Hide the Aircraft list by default

Are you having trouble getting Virtual Radar Server installed and running? If so then this is the place to ask about it.
Ludwig
Posts: 17
Joined: Fri Aug 16, 2013 8:40 am
Location: Frankfurt
Contact:

Hide the Aircraft list by default

Postby Ludwig » Fri Jun 09, 2017 8:50 am

Hi agw,

I am using VRS since some years now. Thanks for your work!!
I am also using the Custom Content Plugin to have some specific settings.
However, I want to hide the aircraft list by default so that only the map is shown. I am not finding the appropriate option. Could you please help me?

Thanks,
Ludwig

Nevermind
Posts: 26
Joined: Thu Sep 11, 2014 12:36 am

Re: Hide the Aircraft list by default

Postby Nevermind » Fri Jul 14, 2017 7:49 am

Moin,

ich habs bei mir über einen Button gelöst. Somit lässt sich die Liste ein und ausblenden.

Code: Select all

if(VRS && VRS.globalDispatch && VRS.serverConfig) {
   VRS.globalDispatch.hook(VRS.globalEvent.bootstrapCreated, function(bootStrap) {
      if(bootStrap.hookInitialised && VRS.layoutManager) {
         bootStrap.hookInitialised(function(pageSettings) {
            if(pageSettings.splittersJQ && !VRS.globalOptions.isFlightSim) {      
               document.getElementById("hideshow_sidepanel").onchange = function() {
                  if (document.getElementById("hideshow_sidepanel").checked) {
                     VRS.layoutManager.applyLayout('vrsLayout-A00');
                  }
                  else {
                     VRS.layoutManager.applyLayout('vrsLayout-A00');
                     var collapseElement = $('.collapse.vertical.right');
                     collapseElement.click();
                  }
               }
                    }
                });
            }
        });
    }


Natürlich kannst du den Button auch weglassen und die Liste per default ausblenden :)


Return to “Installation Problems”

Who is online

Users browsing this forum: Google [Bot] and 2 guests