fix bug with info-visible
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 12 Apr 2011 08:20:18 +0000 (10:20 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 12 Apr 2011 08:20:18 +0000 (10:20 +0200)
planetlab/slices/slice.php
plekit/php/toggle.php

index 44185e6..3dbab8b 100644 (file)
@@ -648,8 +648,7 @@ href="http://trac.myslice.info">http://trac.myslice.info</a>.
 ';
 $toggle_nodes=new PlekitToggle('my-slice-nodes-configuration',
                                "Node table layout",
-                               array('visible'=>NULL, 
-                                    'info-text'=>$layout_info,
+                               array('info-text'=>$layout_info,
                                     'info-visible'=>$show_layout_info));
 $toggle_nodes->start();
 
index d43cc78..b481195 100644 (file)
@@ -144,7 +144,7 @@ class PlekitToggle {
     $html="";
     $html .= "<div class='toggle-info'";
     $html .= " id='$div_id'";
-    if ($info_visible) $html .= " style='display:none'";
+    if (!$info_visible) $html .= " style='display:none'";
     $html .= ">";
     // tmp
     $html .= "<table class='center'><tr><td class='top'>";