Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
muhtasimhafiz committed Aug 14, 2024
1 parent a2fd8f8 commit 2c9e8f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/Domain/Canvas/Controllers/EditCanvasComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public function post($params)
return Frontcontroller::redirect(BASE_URL . '/' . static::CANVAS_NAME . 'canvas' . '/editCanvasComment/' . $_GET['id']);
}

$this->tpl->assign('id', $_GET['id']);
$this->tpl->assign('canvasTypes', $this->canvasRepo->getCanvasTypes());
$this->tpl->assign('canvasItem', $this->canvasRepo->getSingleCanvasItem($_GET['id']));
return $this->tpl->displayPartial(static::CANVAS_NAME . 'canvas.canvasComment');
Expand Down
6 changes: 1 addition & 5 deletions app/Domain/Goalcanvas/Templates/canvasComment.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@
$canvasName = "goal";
$id = "";
if (isset($canvasItem['id']) && $canvasItem['id'] != '') {
$id = $canvasItem['id'];
}
@endphp

<script type="text/javascript">
window.onload = function() {
window.onloa39d = function() {
if (!window.jQuery) {
//It's not a modal
location.href = "<?= BASE_URL ?>/<?= $canvasName ?>canvas/showCanvas?showModal=<?= $canvasItem['id']; ?>";
Expand Down

0 comments on commit 2c9e8f8

Please sign in to comment.