This commit is contained in:
sunguangming
2024-05-20 09:17:29 +08:00
parent fb793d1c5a
commit a808eff182
+5 -1
View File
@@ -592,7 +592,11 @@ class story extends control
if($confirm == 'no')
{
if($story->type == 'requirement') $this->lang->story->confirmDelete = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->confirmDelete);
if($story->type != 'story')
{
$replacement = $story->type == 'requirement' ? $this->lang->URCommon : $this->lang->ERCommon;
$this->lang->story->confirmDelete = str_replace($this->lang->SRCommon, $replacement, $this->lang->story->confirmDelete);
}
$confirmURL = $this->createLink('story', 'delete', "story=$storyID&confirm=yes&from=$from&storyType=$storyType");
return $this->send(array('result' => 'fail', 'callback' => "zui.Modal.confirm({message: '{$this->lang->story->confirmDelete}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'}).then((res) => {if(res) $.ajaxSubmit({url: '$confirmURL'});});"));
}