* Adjust processstorychange page.

This commit is contained in:
wangyidong
2023-11-13 17:17:33 +08:00
parent 6bf84c4f37
commit e6a784a640
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ class story extends control
$this->commonAction($storyID);
$story = $this->view->story;
if($story->status != 'active') return print(js::locate($this->session->storyList, 'parent'));
if($story->status != 'active') return $this->send(array('result' => 'success', 'load' => $this->session->storyList));
$this->story->getAffectedScope($story);
/* Assign. */
+6
View File
@@ -0,0 +1,6 @@
window.closeModal = function(e)
{
let $modal = $(e.target).closest('.modal');
const modalID = $modal.attr('id');
zui.Modal.hide('#' + modalID);
}
+3 -2
View File
@@ -33,9 +33,10 @@ foreach($changedStories as $story)
div
(
on::click('.changeBtn', 'closeModal'),
setClass('actions text-center mt-3'),
btn(set::url(inlink('processstorychange', "id=$storyID&result=no")), setClass('secondary mr-5 btn-wide'), $lang->story->changeList['no']),
btn(set::url(inlink('change', "id=$storyID")), setClass('primary btn-wide'), $lang->story->changeList['yes']),
btn(set::url(inlink('processstorychange', "id=$storyID&result=no")), setClass('secondary changeBtn mr-5 btn-wide'), $lang->story->changeList['no']),
$story->status != 'active' ? null : btn(set::url(inlink('change', "id=$storyID")), setClass('primary changeBtn btn-wide'), $lang->story->changeList['yes']),
);
render();