--- loncom/interface/lonhtmlcommon.pm 2008/09/25 17:44:11 1.181
+++ loncom/interface/lonhtmlcommon.pm 2008/10/07 10:13:58 1.182
@@ -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 @@ can be used to paste LaTeX into a textar
=cut
sub dragmath_js {
+ my ($popup) = @_;
return <
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");
}
ENDDRAGMATHJS
}
+
##############################################
##############################################