[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 09 Nov 2006 20:42:43 -0000
albertel Thu Nov 9 15:42:43 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- always need a close </form> in web view
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.198 loncom/homework/bridgetask.pm:1.199
--- loncom/homework/bridgetask.pm:1.198 Thu Nov 9 15:20:18 2006
+++ loncom/homework/bridgetask.pm Thu Nov 9 15:42:43 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.198 2006/11/09 20:20:18 albertel Exp $
+# $Id: bridgetask.pm,v 1.199 2006/11/09 20:42:43 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1009,7 +1009,12 @@
if (!$previous && $status ne 'SHOW_ANSWER' &&
&show_task($status,$previous)) {
$result.=&Apache::inputtags::gradestatus('0');
- $result.='</form>';
+ }
+
+ $result.='</form>';
+
+ if (!$previous && $status ne 'SHOW_ANSWER' &&
+ &show_task($status,$previous)) {
my $action = &Apache::lonenc::check_encrypt($env{'request.uri'});
$result.=<<DONEBUTTON;
<form name="done" method="post" action="$action">