From 55f6cdb651520d1d5b707f029ab0e4d0081ed6b4 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 8 Jun 2022 15:53:37 +0800 Subject: [PATCH 1/3] * Finish task #56548. --- module/execution/control.php | 8 ++++++++ module/execution/js/importtask.js | 19 +++++++++++++++++++ module/execution/view/importtask.html.php | 8 ++++++++ module/execution/view/kanban.html.php | 4 +++- 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index e89d613e03..56a85eadd3 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -458,6 +458,14 @@ class execution extends control if(!empty($_POST)) { $this->execution->importTask($toExecution); + + /* If link from no head then reload. */ + if(isonlybody()) + { + $kanbanData = $this->loadModel('kanban')->getRDKanban($toExecution, $this->session->execLaneType ? $this->session->execLaneType : 'all'); + return print(js::reload('parent')); + } + return print(js::locate(inlink('importTask', "toExecution=$toExecution&fromExecution=$fromExecution"), 'parent')); } diff --git a/module/execution/js/importtask.js b/module/execution/js/importtask.js index 47b2dca33d..015260e808 100644 --- a/module/execution/js/importtask.js +++ b/module/execution/js/importtask.js @@ -3,3 +3,22 @@ function reload(toProject, fromProject) link = createLink('execution','importtask','toProject='+toProject + '&fromProject='+fromProject); location.href = link; } + +$(function() +{ + $(".preview").modalTrigger({width:1000, type:'iframe'}); + + if(isonlybody == true) parent.$('#triggerModal .modal-content .modal-header .close').hide(); +}); + + +/** + * Go back. + * + * @access public + * @return void + */ +function goback() +{ + parent.location.reload(); +} diff --git a/module/execution/view/importtask.html.php b/module/execution/view/importtask.html.php index e03a6f48d7..d56e1131ba 100644 --- a/module/execution/view/importtask.html.php +++ b/module/execution/view/importtask.html.php @@ -11,6 +11,7 @@ */ ?> + From 35a857fd38f024760c649772930fc3aec4855168 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 9 Jun 2022 10:33:39 +0800 Subject: [PATCH 3/3] * Adjust code. --- module/execution/js/importtask.js | 1 - 1 file changed, 1 deletion(-) diff --git a/module/execution/js/importtask.js b/module/execution/js/importtask.js index 015260e808..f3626b5617 100644 --- a/module/execution/js/importtask.js +++ b/module/execution/js/importtask.js @@ -11,7 +11,6 @@ $(function() if(isonlybody == true) parent.$('#triggerModal .modal-content .modal-header .close').hide(); }); - /** * Go back. *