--- loncom/interface/lonhtmlcommon.pm 2012/05/28 13:09:17 1.314
+++ loncom/interface/lonhtmlcommon.pm 2012/09/04 10:46:05 1.320
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.314 2012/05/28 13:09:17 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.320 2012/09/04 10:46:05 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -95,7 +95,7 @@ sub direct_parm_link {
$filter=&entity_encode($filter);
$part=&entity_encode($part);
if (($symb) && (&Apache::lonnet::allowed('opa')) && ($target ne 'tex')) {
- return "$linktext";
+ return "$linktext";
} else {
return $linktext;
}
@@ -209,9 +209,10 @@ dependencies for a web page uploaded dir
=cut
sub dependencycheck_js {
- my ($symb,$title) = @_;
+ my ($symb,$title,$url) = @_;
my $link = '/adm/dependencies?symb='.&HTML::Entities::encode($symb,'<>&"').
- '&title='.&HTML::Entities::encode($title,'<>&"');
+ '&title='.&HTML::Entities::encode($title,'<>&"').
+ '&url='.&HTML::Entities::encode($url,'<>&"');
return <
//
+
+
+
+
ENDJQUERY
return $s;
}
@@ -1453,7 +1458,7 @@ sub show_return_link {
unless ($env{'request.course.id'}) { return 0; }
if ($env{'request.noversionuri'}=~m{^/priv/} ||
- $env{'request.uri'}=~m{^/~}) { return 1; }
+ $env{'request.uri'}=~m{^/priv/}) { return 1; }
if (($env{'request.noversionuri'} =~ m{^/adm/(viewclasslist|navmaps)($|\?)})
|| ($env{'request.noversionuri'} =~ m{^/adm/.*/aboutme($|\?)})) {
@@ -1492,8 +1497,9 @@ sub set_due_date {
# The code should correct for gross differences between the server
# and client's time setting
- my $js = "
-
-";
- return $js;
+END
}
##
# Sets the time at which the problem finished computing.
@@ -1516,17 +1521,16 @@ var dueDate = new Date(serverDueDa
sub set_compute_end_time {
my $now = time()*1000; # Javascript times are in ms.
- my $js = "
-
-";
- return $js;
-
+END
}
############################################################
@@ -1618,9 +1622,11 @@ returns: nothing
my $links;
if ((&show_return_link) && (!$CourseBreadcrumbs)) {
my $alttext = &mt('Go Back');
- $links=&htmltag( 'a',"",
+ $links=&htmltag( 'a','',
{ href => '/adm/flip?postdata=return:',
- title => &mt("Back to most recent content resource") });
+ title => &mt('Back to most recent content resource'),
+ class => 'LC_menubuttons_link',
+ });
$links=&htmltag('li',$links);
}
$links.= join "",