[LON-CAPA-cvs] cvs: loncom /interface portfolio.pm
banghart
lon-capa-cvs@mail.lon-capa.org
Thu, 24 Aug 2006 17:38:21 -0000
banghart Thu Aug 24 13:38:21 2006 EDT
Modified files:
/loncom/interface portfolio.pm
Log:
After seeing lock info of versioned file, return to opened
"folder" of root file.
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.160 loncom/interface/portfolio.pm:1.161
--- loncom/interface/portfolio.pm:1.160 Fri Aug 18 09:49:34 2006
+++ loncom/interface/portfolio.pm Thu Aug 24 13:38:21 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# portfolio browser
#
-# $Id: portfolio.pm,v 1.160 2006/08/18 13:49:34 raeburn Exp $
+# $Id: portfolio.pm,v 1.161 2006/08/24 17:38:21 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -191,6 +191,11 @@
}
if ($lock_info) {
my %anchor_fields = ('lockinfo' => $fullpath);
+ if ($versions) { # hold the folder open
+ my ($fname,$version,$extension) = &Apache::grades::file_name_version_ext($fullpath);
+ $fname =~ s|^/||;
+ $anchor_fields{'showversions'} = $fname.'.'.$extension;
+ }
$lock_info = &make_anchor(undef,\%anchor_fields,$lock_info);
}
$r->print('<td colspan="2">'.$lock_info.'</td>');
@@ -496,6 +501,7 @@
$message='Done';
}
my %anchor_fields = (
+ 'showversions' => $env{'form.showversions'},
'currentpath' => $env{'form.currentpath'},
'fieldname' => $env{'form.fieldname'},
'mode' => $env{'form.mode'}