* Finish task #7438.

This commit is contained in:
chenfei
2020-07-14 09:54:31 +08:00
parent 063005a710
commit 8c06f97060
6 changed files with 10 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@ $lang->tree->confirmRoot4Doc = "Any changes to the library will change the do
$lang->tree->successSave = 'Saved.';
$lang->tree->successFixed = 'Fixed.';
$lang->tree->repeatName = 'The name "%s" exists!';
$lang->tree->shouldNotBlank = 'Module name should not be blank!';
$lang->tree->module = 'Modul';
$lang->tree->name = 'Name';
+1
View File
@@ -43,6 +43,7 @@ $lang->tree->confirmRoot4Doc = "Any changes to the library will change the do
$lang->tree->successSave = 'Saved.';
$lang->tree->successFixed = 'Fixed.';
$lang->tree->repeatName = 'The name "%s" exists!';
$lang->tree->shouldNotBlank = 'Module name should not be blank!';
$lang->tree->module = 'Module';
$lang->tree->name = 'Name';
+1
View File
@@ -43,6 +43,7 @@ $lang->tree->confirmRoot4Doc = "Any changes to the library will change the do
$lang->tree->successSave = 'Sauvé.';
$lang->tree->successFixed = 'Corrigé.';
$lang->tree->repeatName = 'Le nom "%s" existe déjà !';
$lang->tree->shouldNotBlank = 'Module name should not be blank!';
$lang->tree->module = 'Module';
$lang->tree->name = 'Nom';
+1
View File
@@ -43,6 +43,7 @@ $lang->tree->confirmRoot4Doc = "Mọi sự thay đổi tới thư viện này
$lang->tree->successSave = 'Đã lưu.';
$lang->tree->successFixed = 'Đã sửa';
$lang->tree->repeatName = 'Tên "%s" đã tồn tại!';
$lang->tree->shouldNotBlank = 'Module name should not be blank!';
$lang->tree->module = 'Module';
$lang->tree->name = 'Tên';
+1
View File
@@ -43,6 +43,7 @@ $lang->tree->confirmRoot4Doc = "修改所属文档库,会同时修改该分
$lang->tree->successSave = '成功保存';
$lang->tree->successFixed = '成功修正数据!';
$lang->tree->repeatName = '模块名“%s”已经存在!';
$lang->tree->shouldNotBlank = '模块名不能为空格!';
$lang->tree->module = '模块';
$lang->tree->name = '模块名称';
+5
View File
@@ -1337,6 +1337,11 @@ class treeModel extends model
$childs = $data->modules;
$parentModuleID = $data->parentModuleID;
foreach($childs as $moduleID => $moduleName)
{
if(preg_match('/(^\s+$)/', $moduleName)) die(js::alert($this->lang->tree->shouldNotBlank));
}
$module = new stdClass();
$module->root = $rootID;
$module->type = $type;