* Finish task #7438.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 = '模块名称';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user