[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface londocs.pm
raeburn
raeburn at source.lon-capa.org
Wed Apr 2 18:21:29 EDT 2014
raeburn Wed Apr 2 22:21:29 2014 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface londocs.pm
Log:
- For 2.11.X
- Backport 1.581
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.484.2.51 loncom/interface/londocs.pm:1.484.2.52
--- loncom/interface/londocs.pm:1.484.2.51 Tue Mar 18 02:37:52 2014
+++ loncom/interface/londocs.pm Wed Apr 2 22:21:28 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.484.2.51 2014/03/18 02:37:52 raeburn Exp $
+# $Id: londocs.pm,v 1.484.2.52 2014/04/02 22:21:28 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3345,7 +3345,7 @@
sub entryline {
my ($index,$title,$url,$folder,$allowed,$residx,$coursenum,$coursedom,
$crstype,$pathitem,$supplementalflag,$container,$filtersref,$currgroups)=@_;
- my ($foldertitle,$renametitle);
+ my ($foldertitle,$renametitle,$oldtitle);
if (&is_supplemental_title($title)) {
($title,$foldertitle,$renametitle) = &Apache::loncommon::parse_supplemental_title($title);
} else {
@@ -3358,8 +3358,9 @@
$renametitle=~s/\\/\\\\/g;
$renametitle=~s/\"\;/\\\"/g;
- $renametitle=~s/\'\;/\\\'/g;
$renametitle=~s/ /%20/g;
+ $oldtitle = $renametitle;
+ $renametitle=~s/\'\;/\\\'/g;
my $line=&Apache::loncommon::start_data_table_row();
my ($form_start,$form_end,$form_common,$form_param);
# Edit commands
@@ -3509,7 +3510,7 @@
}
}
$renamelink=(<<ENDREN);
-<a href='javascript:changename("$esc_path","$index","$renametitle");' class="LC_docs_rename">$lt{'rn'}</a>
+<a href='javascript:changename("$esc_path","$index","$oldtitle");' class="LC_docs_rename">$lt{'rn'}</a>
ENDREN
$line.=(<<END);
<td>
More information about the LON-CAPA-cvs
mailing list