handling toggle parts visible tag: now rely on local storage, so avoid
[plewww.git] / planetlab / slices / slice_add.php
index d932212..59c0efc 100644 (file)
@@ -95,6 +95,11 @@ if ( $_POST['add-slice'] ) {
        } else {
          drupal_set_message("Successfully set the 'omf_control' tag on slice");
        }
+       if ($api->SetSliceVref($slice_id,'omf') != 'omf') {
+         drupal_set_error("Could not set the 'vref' tag on newly created slice...");
+       } else {
+         drupal_set_message("Successfully set the 'vref' tag on slice");
+       }
       }
 
       if ($person_ids) {
@@ -210,7 +215,7 @@ New software releases and available services are announced here as well.
 EOF;
 
 $toggle = new PlekitToggle ('create-slice-details','Slice Details',
-                           array ('visible'=>get_arg('show_slice',true)));
+                           array ('visible'=>get_arg('show_slice')));
 $details = new PlekitDetails(TRUE);
 
 $form_variables = array('site_id'=>plc_my_site_id());
@@ -276,7 +281,7 @@ $toggle->end();
 if ($persons) {
   $title = count($persons) . " people can be added in slice";
   $toggle=new PlekitToggle ('create-slice-persons',$title,
-                         array('visible'=>get_arg('show_persons',true)));
+                         array('visible'=>get_arg('show_persons')));
   $toggle->start();
   
   $headers = array();