diff --git a/module/doc/js/zentaolist.ui.js b/module/doc/js/zentaolist.ui.js index b02c861e83..af2d882c32 100644 --- a/module/doc/js/zentaolist.ui.js +++ b/module/doc/js/zentaolist.ui.js @@ -27,6 +27,12 @@ function insert() { const dtable = zui.DTable.query($('#previewTable')); const checkedList = dtable.$.getChecks(); + const tip = $('#insert').data('tip'); + if(checkedList.length == 0) + { + zui.Modal.alert(tip); + return; + } const url = $.createLink('doc', 'zentaolist', 'type=' + getType() + '&view=list&idList=' + checkedList.join(',')); loadPage(url); diff --git a/module/doc/lang/de.php b/module/doc/lang/de.php index dcbf23980b..de03943f1a 100644 --- a/module/doc/lang/de.php +++ b/module/doc/lang/de.php @@ -250,6 +250,7 @@ $lang->doc->preview = 'Preview'; $lang->doc->insertTitle = 'Insert %s list'; $lang->doc->insertTip = 'Through the filter configuration, you can modify the insertion display data, and the system records the insertion data ID. '; $lang->doc->previewTip = 'Click "Preview" button, this will display the insertion data according to the configuration on the left side. '; +$lang->doc->insertTip = 'Please preview at least one record.'; $lang->doc->insertText = 'Insert'; $lang->doc->searchCondition = 'Search Condition'; $lang->doc->list = 'List'; diff --git a/module/doc/lang/en.php b/module/doc/lang/en.php index 21c5af4e7d..111d5cad7e 100644 --- a/module/doc/lang/en.php +++ b/module/doc/lang/en.php @@ -250,6 +250,7 @@ $lang->doc->preview = 'Preview'; $lang->doc->insertTitle = 'Insert %s list'; $lang->doc->insertTip = 'Through the filter configuration, you can modify the insertion display data, and the system records the insertion data ID. '; $lang->doc->previewTip = 'Click "Preview" button, this will display the insertion data according to the configuration on the left side. '; +$lang->doc->insertTip = 'Please preview at least one record.'; $lang->doc->insertText = 'Insert'; $lang->doc->searchCondition = 'Search Condition'; $lang->doc->list = 'List'; diff --git a/module/doc/lang/fr.php b/module/doc/lang/fr.php index 3faaf4b998..be1368e133 100644 --- a/module/doc/lang/fr.php +++ b/module/doc/lang/fr.php @@ -250,6 +250,7 @@ $lang->doc->preview = 'Preview'; $lang->doc->insertTitle = 'Insert %s list'; $lang->doc->insertTip = 'Through the filter configuration, you can modify the insertion display data, and the system records the insertion data ID. '; $lang->doc->previewTip = 'Click "Preview" button, this will display the insertion data according to the configuration on the left side. '; +$lang->doc->insertTip = 'Please preview at least one record.'; $lang->doc->insertText = 'Insert'; $lang->doc->searchCondition = 'Search Condition'; $lang->doc->list = 'List'; diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php index fd422720df..3de2be4a2b 100644 --- a/module/doc/lang/zh-cn.php +++ b/module/doc/lang/zh-cn.php @@ -250,6 +250,7 @@ $lang->doc->preview = '预览'; $lang->doc->insertTitle = '插入%s列表'; $lang->doc->insertTip = '通过筛选配置可以修改插入内容的展示数据,系统会记录插入时的数据ID。'; $lang->doc->previewTip = '点击“预览”按钮,此处根据上方配置展示需要插入的禅道列表。'; +$lang->doc->insertTip = '请预览后至少选择一条数据。'; $lang->doc->insertText = '插入'; $lang->doc->searchCondition = '搜索条件'; $lang->doc->list = '列表'; diff --git a/module/doc/ui/zentaolist.html.php b/module/doc/ui/zentaolist.html.php index c6b71048cf..824c3066c7 100644 --- a/module/doc/ui/zentaolist.html.php +++ b/module/doc/ui/zentaolist.html.php @@ -72,6 +72,7 @@ formPanel btn ( setID('insert'), + set('data-tip', $lang->doc->insertTip), set::type('primary'), $lang->doc->insertText ),