[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm /publisher packages.tab
raeburn
raeburn at source.lon-capa.org
Sat Feb 4 17:38:32 EST 2023
raeburn Sat Feb 4 22:38:32 2023 EDT
Modified files:
/loncom/homework inputtags.pm
/loncom/publisher packages.tab
Log:
- Bug 6978
"turnoffeditor" parameter previously available for formularesponse and
mathresponse is now also available for customreponse, but default for
formula and math is "no", whereas default for custom is "yes".
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.355 loncom/homework/inputtags.pm:1.356
--- loncom/homework/inputtags.pm:1.355 Tue Sep 7 20:37:33 2021
+++ loncom/homework/inputtags.pm Sat Feb 4 22:38:31 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.355 2021/09/07 20:37:33 raeburn Exp $
+# $Id: inputtags.pm,v 1.356 2023/02/04 22:38:31 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -474,8 +474,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);
}
}
Index: loncom/publisher/packages.tab
diff -u loncom/publisher/packages.tab:1.81 loncom/publisher/packages.tab:1.82
--- loncom/publisher/packages.tab:1.81 Wed Jun 29 19:31:10 2022
+++ loncom/publisher/packages.tab Sat Feb 4 22:38:32 2023
@@ -130,6 +130,9 @@
customresponse&handgrade&type:string_yesno
customresponse&handgrade&default:no
customresponse&handgrade&display:Hand Graded
+customresponse&turnoffeditor&type:string_yesno
+customresponse&turnoffeditor&default:yes
+customresponse&turnoffeditor&display:Hide DragMath-Editor
#parameters for things by extension
extension_sequence&encrypturl&type:string_yesno
More information about the LON-CAPA-cvs
mailing list