* Adjust processstorychange page.
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
window.closeModal = function(e)
|
||||
{
|
||||
let $modal = $(e.target).closest('.modal');
|
||||
const modalID = $modal.attr('id');
|
||||
zui.Modal.hide('#' + modalID);
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user