[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

raeburn raeburn@source.lon-capa.org
Thu, 13 Jan 2011 18:11:46 -0000


raeburn		Thu Jan 13 18:11:46 2011 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - Reverse part of 1.483, as it prevented display of click location,
    prior to submission.
  - Additional xhtml.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.484 loncom/homework/structuretags.pm:1.485
--- loncom/homework/structuretags.pm:1.484	Fri Jan  7 05:09:32 2011
+++ loncom/homework/structuretags.pm	Thu Jan 13 18:11:45 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.484 2011/01/07 05:09:32 raeburn Exp $
+# $Id: structuretags.pm,v 1.485 2011/01/13 18:11:45 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -144,7 +144,7 @@
     var y= e.clientY-getY(img_element)+Geometry.getVerticalScroll();
     var click = x+':'+y;
     input_element.value = click;
-    img_element.src = '/adm/randomlabel.png?token='+token+'&clickdata='+click;
+    img_element.src = '/adm/randomlabel.png?token='+token+'&clickdata='+click;
 }
 // ]]>
 </script>
@@ -154,10 +154,12 @@
 sub setmode_javascript {
     return <<"ENDSCRIPT";
 <script type="text/javascript">
+// <![CDATA[
 function setmode(form,probmode) {
     form.problemmode.value = probmode;
     form.submit();
 }
+// ]]>
 </script>
 ENDSCRIPT
 }