* [task#126400] modify changeQuoteTitle function of thinkradio.

This commit is contained in:
Zhangyu
2024-08-26 08:31:45 +08:00
committed by 刘刚
parent b4f53f4588
commit b29a993f45
+20
View File
@@ -33,4 +33,24 @@ window.changeQuoteTitle = function(event)
citationItems.push({key: keyValue, value:keyValue, text: fields[keyValue]});
})
$('.quote-citation').toggleClass('gap-4', multicolumnStep);
$('.select-column').toggleClass('hidden', !multicolumnStep);
$('.citation').toggleClass('hidden', multicolumnStep);
$('.multicolumn-citation').toggleClass('hidden', !multicolumnStep);
if(multicolumnStep)
{
/* 引用题目为多列填空题的时候,重置选择列的下拉选项和默认值, 修改引用方式为:引用某行输入项。 */
/* When the reference question is a multi-column fill-in-the-blank question, reset the drop-down options and default values of the selected column, and change the reference method to: reference an input item in a row. */
$('.select-column .picker-box').zui('picker').render({items: citationItems});
$('.select-column .picker-box').zui('picker').$.setValue(citationItems[0]);
$('.multicolumn-citation input[name="options[citation]"]').prop('checked', true);
}
else
{
/* 引用题目类型为多选或者单选题是,清空选择列的下拉选项和默认值,修改默认引用方式为:引用题的选中项。 */
/* If the reference question type is multiple choice or single choice, clear the drop-down options and default values in the selection column, and change the default reference method to: reference the selected item in the question. */
$('.select-column .picker-box').zui('picker').render({items: []});
$('.select-column .picker-box').zui('picker').$.setValue('');
$('.citation input[id="options[citation]1"]').prop('checked', true);
}
}