* [task#131064] modify changeSetOption function name of thinkstepquote.

This commit is contained in:
Zhangyu
2024-10-29 09:45:50 +08:00
committed by 朱金勇
parent 76c0a4d4c2
commit b57f6473f6
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ window.hiddenRequiredCols = function()
* @access public
* @return void
*/
window.changeSetOption = function(target)
window.changeMulticolumnSetOption = function(target)
{
$('.think-options-field').toggleClass('hidden', target.value == 1);
$('.think-quote').toggleClass('hidden', target.value == 0);
+1 -1
View File
@@ -65,7 +65,7 @@ window.changeQuoteTitle = function()
* @access public
* @return void
*/
window.changeSetOption = function(target)
window.changeCheckboxSetOption = function(target)
{
$('.think-options-field').toggleClass('hidden', target.value == 1);
$('.think-quote').toggleClass('hidden', target.value == 0);
+3 -1
View File
@@ -52,7 +52,9 @@ class thinkStepQuote extends wg
set::value($setOption),
set::items($lang->thinkstep->setOptionList),
set::disabled(empty($quoteQuestions)),
on::change()->do("changeSetOption(target)")
on::change()
->const('questionType', $questionType)
->do("questionType == 'checkbox' ? changeCheckboxSetOption(target) : changeMulticolumnSetOption(target)")
)
),
icon