[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 28 Jun 2004 15:01:45 -0000
sakharuk Mon Jun 28 11:01:45 2004 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
Bug 3070 (Suppress "tries 0/10" in printing) is fixed.
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.146 loncom/homework/inputtags.pm:1.147
--- loncom/homework/inputtags.pm:1.146 Mon Jun 7 17:52:11 2004
+++ loncom/homework/inputtags.pm Mon Jun 28 11:01:44 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.146 2004/06/07 21:52:11 albertel Exp $
+# $Id: inputtags.pm,v 1.147 2004/06/28 15:01:44 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -712,7 +712,7 @@
if ( $Apache::lonhomework::type eq 'survey') { $tries_text=&mt('Submissions'); }
if ( $showbutton ) {
if ($target eq 'tex') {
- if ($ENV{'request.state'} ne "construct" && $Apache::lonhomework::type ne 'exam') {
+ if ($ENV{'request.state'} ne "construct" && $Apache::lonhomework::type ne 'exam' && $ENV{'form.suppress_tries'} ne 'yes') {
$trystr = ' {\vskip 1 mm \small \textit{'.$tries_text.'} '.$tries.'/'.$maxtries.'} \vskip 2 mm ';
} else {
$trystr = '\vskip 0 mm ';