[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
www
www at source.lon-capa.org
Sun Dec 11 08:23:24 EST 2011
www Sun Dec 11 13:23:24 2011 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
Escaping from modal windows
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.295 loncom/interface/lonhtmlcommon.pm:1.296
--- loncom/interface/lonhtmlcommon.pm:1.295 Thu Dec 8 21:37:46 2011
+++ loncom/interface/lonhtmlcommon.pm Sun Dec 11 13:23:24 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.295 2011/12/08 21:37:46 www Exp $
+# $Id: lonhtmlcommon.pm,v 1.296 2011/12/11 13:23:24 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -72,7 +72,7 @@
sub coursepreflink {
my ($text,$category)=@_;
if (&Apache::lonnet::allowed('opa',$env{'request.course.id'})) {
- return '<a href="'.&HTML::Entities::encode("/adm/courseprefs?phase=display&actions=$category",'<>&"').'"><span class="LC_setting">'.$text.'</span></a>';
+ return '<a target="_top" href="'.&HTML::Entities::encode("/adm/courseprefs?phase=display&actions=$category",'<>&"').'"><span class="LC_setting">'.$text.'</span></a>';
} else {
return '';
}
@@ -95,7 +95,7 @@
$filter=&entity_encode($filter);
$part=&entity_encode($part);
if (($symb) && (&Apache::lonnet::allowed('opa')) && ($target ne 'tex')) {
- return "<a href='/adm/parmset?symb=$symb&filter=$filter&part=$part'><span class='LC_setting'>$linktext</span></a>";
+ return "<a target='_top' href='/adm/parmset?symb=$symb&filter=$filter&part=$part'><span class='LC_setting'>$linktext</span></a>";
} else {
return $linktext;
}
More information about the LON-CAPA-cvs
mailing list