--- loncom/homework/edit.pm 2012/02/13 11:23:11 1.140 +++ loncom/homework/edit.pm 2012/08/07 14:54:10 1.142 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # edit mode helpers # -# $Id: edit.pm,v 1.140 2012/02/13 11:23:11 foxr Exp $ +# $Id: edit.pm,v 1.142 2012/08/07 14:54:10 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -427,6 +427,12 @@ sub insert_plotvector { <plotvector />'; } +sub insert_drawvectorsum { + return ' +<drawvectorsum />'; +} + + sub insert_functionplotrule { return ' <functionplotrule />'; @@ -738,6 +744,7 @@ sub js_change_detection { my $unsaved=&mt("There are unsaved changes"); return (<<SCRIPT); <script type="text/javascript"> +// <![CDATA[ var clean = true; var is_submit = false; var still_ask = false; @@ -756,6 +763,7 @@ function unClean() { clean=false; } window.onbeforeunload = compareForm; +// ]]> </script> SCRIPT }