[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
www
www at source.lon-capa.org
Thu Dec 8 17:42:33 EST 2011
www Thu Dec 8 22:42:33 2011 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
Don't pop up help windows
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1032 loncom/interface/loncommon.pm:1.1033
--- loncom/interface/loncommon.pm:1.1032 Thu Dec 8 02:59:37 2011
+++ loncom/interface/loncommon.pm Thu Dec 8 22:42:33 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1032 2011/12/08 02:59:37 www Exp $
+# $Id: loncommon.pm,v 1.1033 2011/12/08 22:42:33 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1186,7 +1186,7 @@
my ($topic, $text, $stayOnPage, $width, $height, $imgid) = @_;
$text = "" if (not defined $text);
$stayOnPage = 0 if (not defined $stayOnPage);
- $width = 350 if (not defined $width);
+ $width = 500 if (not defined $width);
$height = 400 if (not defined $height);
my $filename = $topic;
$filename =~ s/ /_/g;
@@ -1197,7 +1197,7 @@
$topic=~s/\W/\_/g;
if (!$stayOnPage) {
- $link = "javascript:void(open('/adm/help/${filename}.hlp', 'Help_for_$topic', 'menubar=0,toolbar=1,scrollbars=1,width=$width,height=$height,resizable=yes'))";
+ $link = "javascript:openMyModal('/adm/help/${filename}.hlp',$width,$height,'yes');";
} else {
$link = "/adm/help/${filename}.hlp";
}
More information about the LON-CAPA-cvs
mailing list