version 1.175, 2008/06/01 00:04:39
|
version 1.176, 2008/07/07 11:02:05
|
Line 62 use Apache::lonlocal;
|
Line 62 use Apache::lonlocal;
|
use Apache::lonnet; |
use Apache::lonnet; |
use LONCAPA; |
use LONCAPA; |
|
|
|
|
|
############################################## |
|
############################################## |
|
|
|
=pod |
|
|
|
=item dragmath |
|
|
|
Creates a button that will allow dragmath to edit an equation into |
|
a specified textbox. |
|
|
|
textarea - Name of the text area to edit. |
|
=cut |
|
|
|
############################################## |
|
# TODO: Figure out a way to only emit the mathedit function once. |
|
# per html output document. |
|
# |
|
############################################## |
|
|
|
sub dragmath { |
|
my ($textarea) = @_; |
|
|
|
return <<ENDDRAGMATH; |
|
<script language="JavaScript"> |
|
function mathedit(textarea, doc) { |
|
targetEntry = textarea; |
|
targetDoc = doc; |
|
newwin = window.open("/adm/dragmath/applet/EditMathPopup.html","","width=565,height=500,resizable"); |
|
} |
|
</script> |
|
<input type="button" value="Edit Math", onclick="javascript:mathedit('$textarea',document)" /> |
|
ENDDRAGMATH |
|
} |
|
|
############################################## |
############################################## |
############################################## |
############################################## |
|
|
Line 1922 END
|
Line 1957 END
|
return $scripttag; |
return $scripttag; |
} |
} |
|
|
|
|
|
|
1; |
1; |
|
|
__END__ |
__END__ |