* [task#131064] modify changeSetOption function name of thinkstepquote.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user