* [task#126993] add the add tip of thinkmulticolumn widget.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user