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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 09 Oct 2007 23:32:58 -0000


albertel		Tue Oct  9 19:32:58 2007 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - missed commit for renaming inputs in handling imagerespone in .page
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.400 loncom/homework/structuretags.pm:1.401
--- loncom/homework/structuretags.pm:1.400	Tue Sep 25 19:16:13 2007
+++ loncom/homework/structuretags.pm	Tue Oct  9 19:32:57 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.400 2007/09/25 23:16:13 albertel Exp $
+# $Id: structuretags.pm,v 1.401 2007/10/09 23:32:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -104,9 +104,9 @@
     init_geometry();
     if (!e) { e = window.event; } //IE
     var input_element = document.lonhomework.elements[which];
-    var token_element = document.lonhomework.elements['token_'+which];
+    var token_element = document.lonhomework.elements[which+'_token'];
     var token = token_element.value;
-    var img_element   = document.getElementById('imageresponse_'+which);
+    var img_element   = document.getElementById(which+'_imageresponse');
     var x= e.clientX-getX(img_element)+Geometry.getHorizontalScroll();
     var y= e.clientY-getY(img_element)+Geometry.getVerticalScroll();
     var click = x+':'+y;