+ [task#126993] add renderRowData function of thinkmulticolumn widget.
This commit is contained in:
@@ -11,3 +11,13 @@ window.changeRows = function()
|
||||
const intValue = value < 1 ? 1 : parseInt(value, 10);
|
||||
$(this).val(intValue);
|
||||
}
|
||||
|
||||
window.renderRowData = function()
|
||||
{
|
||||
$('.think-form-batch .form-batch-row-actions .btn[data-type="add"]').prop({
|
||||
disabled: $('.think-form-batch .form-batch-row-actions').length >= canAddRowsOfMulticol,
|
||||
title: $('.think-form-batch .form-batch-row-actions').length >= canAddRowsOfMulticol ? addRowsTips.replace('%d', canAddRowsOfMulticol) : '',
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('click', '.think-form-batch .form-batch-row-actions .btn', renderRowData);
|
||||
|
||||
Reference in New Issue
Block a user