[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 27 Nov 2006 23:33:02 -0000
albertel Mon Nov 27 18:33:02 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- add the id of the dim to the div
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.209 loncom/homework/bridgetask.pm:1.210
--- loncom/homework/bridgetask.pm:1.209 Mon Nov 27 18:24:36 2006
+++ loncom/homework/bridgetask.pm Mon Nov 27 18:33:01 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.209 2006/11/27 23:24:36 albertel Exp $
+# $Id: bridgetask.pm,v 1.210 2006/11/27 23:33:01 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2302,9 +2302,9 @@
# that the dimension produces
if ($result =~ m{\s*</div>}) {
$result =~ s{(\s*</div>)}
- {$1\n<div class="LC_question">};
+ {$1\n<div id="$dim" class="LC_question">};
} else {
- $result = "\n".'<div class="LC_question">'.
+ $result = "\n".'<div id="'.$dim.'" class="LC_question">'.
"\n".$result;
}
$result .= "\n</div>\n";