Changeset 1762

Show
Ignore:
Timestamp:
12/24/06 05:45:57 (2 years ago)
Author:
anarcat
Message:

fix file deletion when in subdirectory: pass R along. also don't depend on javascript for removal (must be tested on explorer, since we rely on the name of the submit button now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/admin/bro_main.php

    r1757 r1762  
    5858  case 2:  // act vaut Supprimer Copier ou Renommer. 
    5959    if ($actdel) { 
    60       if($del_confirm == "y")
     60      if($del_confirm == _("Yes"))
    6161        if (!$bro->DeleteFile($d,$R)) { 
    6262          print $err->errstr(); 
    6363        } 
    64       }else
     64      } elseif(!$cancel)
    6565        include("head.php"); 
    6666?> 
     
    6969  <h3><?php printf(_("Deleting files and/or directories")); ?> : </h3> 
    7070  <form action="bro_main.php" method="post">   
    71     <input type="hidden" name="del_confirm" value="y" /> 
    7271    <input type="hidden" name="formu" value="2" /> 
     72    <input type="hidden" name="actdel" value="1" /> 
     73    <input type="hidden" name="R" value="<?php echo $R?>" /> 
    7374    <p class="error"><?php __("WARNING : Confirm the deletion of this files"); ?></p> 
    7475<?php foreach($d as $file){ ?> 
     
    7778<?php } ?> 
    7879    <blockquote> 
    79       <input type="submit" class="inb" name="actdel" value="<?php __("Yes"); ?>" />&nbsp;&nbsp; 
    80       <input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="document.location='bro_main.php';" /> 
     80      <input type="submit" class="inb" name="del_confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp; 
     81      <input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" /> 
    8182    </blockquote> 
    8283  </form>