* [task#126993] add the add tip of thinkmulticolumn widget.

This commit is contained in:
wangzemei
2024-08-29 16:34:27 +08:00
committed by 刘刚
parent 4f131b3d33
commit fcecf8c1a4
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ window.renderRowData = function()
{
$('.think-form-batch .form-batch-row-actions .btn[data-type="add"]').prop({
disabled: $('.think-form-batch tbody tr').length >= canAddRowsOfMulticol,
title: $('.think-form-batch tbody tr').length >= canAddRowsOfMulticol ? addRowsTips.replace('%s', canAddRowsOfMulticol) : '',
title: $('.think-form-batch tbody tr').length >= canAddRowsOfMulticol ? addRowsTips.replace('%s', canAddRowsOfMulticol) : addLang,
});
}
+2
View File
@@ -53,6 +53,7 @@ class thinkMulticolumn extends thinkQuestion
}
jsVar('canAddRowsOfMulticol', $canAddRows + 5);
jsVar('addRowsTips', $lang->thinkrun->tips->addRow);
jsVar('addLang', $lang->thinkrun->add);
$batchItems = array();
foreach($fields as $key => $field)
@@ -92,6 +93,7 @@ class thinkMulticolumn extends thinkQuestion
}
jsVar('canAddRowsOfMulticol', (int)$canAddRows + 5);
jsVar('addRowsTips', $lang->thinkrun->tips->addRow);
jsVar('addLang', $lang->thinkrun->add);
$formItems[] = array(
formHidden('options[questionType]', $questionType),