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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 09 Mar 2006 00:43:06 -0000


albertel		Wed Mar  8 19:43:06 2006 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - add exam_box support to <hiddenline />
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.188 loncom/homework/inputtags.pm:1.189
--- loncom/homework/inputtags.pm:1.188	Wed Mar  8 19:41:24 2006
+++ loncom/homework/inputtags.pm	Wed Mar  8 19:43:05 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.188 2006/03/09 00:41:24 albertel Exp $
+# $Id: inputtags.pm,v 1.189 2006/03/09 00:43:05 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -355,6 +355,12 @@
 	$result=&Apache::edit::tag_start($target,$token);
 	$result.=&Apache::edit::end_table;
     }
+
+    if ( ($target eq 'web' || $target eq 'tex')
+	 && $Apache::lonhomework::type eq 'exam'
+	 && &needs_exam_box($tagstack)) {
+	$result.=&exam_box($target);
+    }
     return $result;
 }