[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
foxr
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 07 Oct 2008 10:13:58 -0000
foxr Tue Oct 7 06:13:58 2008 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
Parameterize generation of dragmath popup so that different
applet jackets can be selected in differnt contexts.
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.181 loncom/interface/lonhtmlcommon.pm:1.182
--- loncom/interface/lonhtmlcommon.pm:1.181 Thu Sep 25 13:44:11 2008
+++ loncom/interface/lonhtmlcommon.pm Tue Oct 7 06:13:58 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.181 2008/09/25 17:44:11 bisitz Exp $
+# $Id: lonhtmlcommon.pm,v 1.182 2008/10/07 10:13:58 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -102,18 +102,20 @@
=cut
sub dragmath_js {
+ my ($popup) = @_;
return <<ENDDRAGMATHJS;
<script type="text/javascript">
function mathedit(textarea, doc) {
targetEntry = textarea;
targetDoc = doc;
- newwin = window.open("/adm/dragmath/applet/EditMathPopup.html","","width=565,height=500,resizable");
+ newwin = window.open("/adm/dragmath/applet/$popup.html","","width=565,height=500,resizable");
}
</script>
ENDDRAGMATHJS
}
+
##############################################
##############################################