From 4b377fd01878a6214ec590368185cc16c2fc466e Mon Sep 17 00:00:00 2001
From: pcanterino <>
Date: Thu, 24 Aug 2006 19:48:37 +0000
Subject: [PATCH 1/1] Trying to simplify some of Dev-Editor's functions:
If you want to copy or rename/move a file or a directory or save a file using a
different name, the form field for the new filename is prefilled with the old
one. Additionally, the entered path is no more relative to the directory of the
original file.
---
devedit.pl | 3 +--
modules/Command.pm | 2 +-
templates/copydir.htm | 2 +-
templates/copyfile.htm | 2 +-
templates/editfile.htm | 2 +-
templates/renamefile.htm | 2 +-
6 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/devedit.pl b/devedit.pl
index 39588cf..7ad34c0 100644
--- a/devedit.pl
+++ b/devedit.pl
@@ -6,7 +6,7 @@
# Dev-Editor's main program
#
# Author: Patrick Canterino
-# Last modified: 2005-06-14
+# Last modified: 2006-08-24
#
use strict;
@@ -58,7 +58,6 @@ my $new_virtual = '';
if($newfile ne '' && $newfile !~ /^\s+$/)
{
- $curdir = upper_path($file) if($curdir eq '');
my $path = $curdir.'/'.$newfile;
# Extract file and directory name...
diff --git a/modules/Command.pm b/modules/Command.pm
index d779a6c..28c6777 100644
--- a/modules/Command.pm
+++ b/modules/Command.pm
@@ -966,7 +966,7 @@ sub exec_about($$)
$tpl->parse_if_block('users',1);
- # ID's of user and group
+ # IDs of user and group
$tpl->fillin('UID',$uid);
$tpl->fillin('GID',$gid);
diff --git a/templates/copydir.htm b/templates/copydir.htm
index f98f63b..6cbc65a 100644
--- a/templates/copydir.htm
+++ b/templates/copydir.htm
@@ -21,7 +21,7 @@