* Detele todo lang and fix project link to plan bug.

This commit is contained in:
Yagami
2018-07-13 10:47:17 +08:00
parent 8e6a61a178
commit bc4a40282e
5 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -174,7 +174,7 @@
{
$("input[name='name']").addClass('has-error');
$('#nameLabel').remove();
$("input[name='name']").after('<div id="nameLabel" class="text-danger help-text"><?php echo $lang->todo->noName ?></div>');
$("input[name='name']").after('<div id="nameLabel" class="text-danger help-text"><?php echo sprintf($lang->error->notempty, $lang->todo->name) ?></div>');
setTimeout('clearError()', 2000)
return false;
}
+1 -1
View File
@@ -2325,7 +2325,7 @@ class project extends control
$planStories = array_keys($planStory);
$this->project->linkStory($projectID, $planStories, $planProducts);
}
if($count != 0) die(js::confirm(sprintf($this->lang->project->haveDraft, $count), $this->createLink('project', 'story', "projectID=$projectID")));
if($count != 0) echo js::alert(sprintf($this->lang->project->haveDraft, $count)) . js::locate($this->createLink('project', 'story', "projectID=$projectID"));
die(js::locate(helper::createLink('project', 'story', 'projectID=' . $projectID), 'parent'));
}
+1 -1
View File
@@ -1614,7 +1614,7 @@ class projectModel extends model
}
}
$this->linkStory($projectID, $planStories, $planProducts);
if($count != 0) die(js::confirm(sprintf($this->lang->project->haveDraft, $count), helper::createLink('project', 'create', "projectID=$projectID")));
if($count != 0) echo js::alert(sprintf($this->lang->project->haveDraft, $count)) . js::locate(helper::createLink('project', 'create', "projectID=$projectID"));
}
/**
-1
View File
@@ -30,7 +30,6 @@ $lang->todo->import = "Import";
$lang->todo->legendBasic = "Basic Info";
$lang->todo->cycle = "Recurrence";
$lang->todo->cycleConfig = "Set Recurrence";
$lang->todo->noName = "The Name should not be empty.";
$lang->todo->reasonList['story'] = "Transfer Story";
$lang->todo->reasonList['task'] = "Transfer Task";
-1
View File
@@ -30,7 +30,6 @@ $lang->todo->import = "导入";
$lang->todo->legendBasic = "基本信息";
$lang->todo->cycle = "周期";
$lang->todo->cycleConfig = "周期设置";
$lang->todo->noName = "『待办名称』不能为空。";
$lang->todo->reasonList['story'] = "转需求";
$lang->todo->reasonList['task'] = "转任务";