Log details load in opened state

Hello again

                Build 822 , in “view my Pireps” >>> Clicking on a flight number for a previously filed pirep now loads the Log details i.e additional log information … expanded on first view, without having to click on the “view log” link

I left it open for pireps filed with FSFK since they are prettier

http://dev.phpvms.net/index.php/pireps/viewreport/90

Hi Nabeel

              Ah thanks yes looks nice with the FSFK log indeed .

about the Logic with the view log link , can it be that ?  …

<?php

/* If it’s FSFK, don’t show the toggle. We want all the details and pretty

images showing up by default */

if($pirep->source != ‘fsfk’)

{

?>

<p><a href=“#” onclick=“$(‘#log’).toggle(); return false;”>View Log</a></p>

the above if else does’nt work for some reason ? since the Link shows anyway

http://www.airindiavirtual.net/vms/index.php/pireps/view/440

I will check, it should only be doing that with FSFK flights

HI Guys is there a fix for this as i would like to hide the log on page load and only display if clicked.

Don’t worry fixed it the p needed changing to a div