[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /homework inputtags.pm
raeburn
raeburn at source.lon-capa.org
Sat Feb 4 19:17:42 EST 2023
raeburn Sun Feb 5 00:17:42 2023 EDT
Modified files: (Branch: version_2_11_X)
/loncom/homework inputtags.pm
Log:
- For 2.11
Backport 1.356
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.333.2.12 loncom/homework/inputtags.pm:1.333.2.13
--- loncom/homework/inputtags.pm:1.333.2.12 Sun Dec 12 21:21:44 2021
+++ loncom/homework/inputtags.pm Sun Feb 5 00:17:42 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.333.2.12 2021/12/12 21:21:44 raeburn Exp $
+# $Id: inputtags.pm,v 1.333.2.13 2023/02/05 00:17:42 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -473,8 +473,10 @@
$result .= &spellcheck_onblur($itemid, $spellcheck);
if (($Apache::inputtags::status['-1'] eq 'CAN_ANSWER') &&
- (($tagstack->[-2] eq 'formularesponse') || ($tagstack->[-2] eq 'mathresponse')) &&
- (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) {
+ (((($tagstack->[-2] eq 'formularesponse') || ($tagstack->[-2] eq 'mathresponse')) &&
+ (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) ||
+ (($tagstack->[-2] eq 'customresponse') &&
+ (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') eq 'no')))) {
$result.=&edit_mathresponse_button($input_tag_id);
}
}
More information about the LON-CAPA-cvs
mailing list