From 71647a1976a9d28e06ec151e9d53ce2adf74a618 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Thu, 2 Nov 2023 14:21:59 +0800 Subject: [PATCH] * Adjust space page css. --- module/kanban/js/create.ui.js | 2 +- module/kanban/js/space.ui.js | 1 + module/kanban/ui/space.html.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 module/kanban/js/space.ui.js diff --git a/module/kanban/js/create.ui.js b/module/kanban/js/create.ui.js index e24753efe5..ea8c6f3a5a 100644 --- a/module/kanban/js/create.ui.js +++ b/module/kanban/js/create.ui.js @@ -1,6 +1,6 @@ window.clickCopyCard = function(event) { - setCopyKanban($(event.target).data('id')); + setCopyKanban($(event.target).closest('.copy-card').data('id')); $('#copyKanbanModal').modal('hide'); } diff --git a/module/kanban/js/space.ui.js b/module/kanban/js/space.ui.js new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/module/kanban/js/space.ui.js @@ -0,0 +1 @@ + diff --git a/module/kanban/ui/space.html.php b/module/kanban/ui/space.html.php index 9472de9558..babca44863 100644 --- a/module/kanban/ui/space.html.php +++ b/module/kanban/ui/space.html.php @@ -77,7 +77,7 @@ foreach($spaceList as $space) $canEdit = common::hasPriv('kanban','edit'); $canDelete = common::hasPriv('kanban','delete'); $canClose = (common::hasPriv('kanban', 'close') and $kanban->status == 'active'); - $canActivate = (common::hasPriv('kanban', 'activate') and $kanban->status == 'closed'); + $canActivate = (common::hasPriv('kanban', 'activate') and $kanban->status == 'closed'); if($canEdit) $cardActions[] = array('icon' => 'edit', 'text' => $lang->kanban->edit, 'url' => createLink('kanban', 'edit', "kanbanID={$kanban->id}"), 'data-toggle' => 'modal'); if($canClose) $cardActions[] = array('icon' => 'off', 'text' => $lang->kanban->close, 'url' => createLink('kanban', 'close', "kanbanID={$kanban->id}"), 'data-toggle' => 'modal'); if($canActivate) $cardActions[] = array('icon' => 'magic', 'text' => $lang->kanban->activate, 'url' => createLink('kanban', 'activate', "kanbanID={$kanban->id}"), 'data-toggle' => 'modal'); @@ -90,7 +90,7 @@ foreach($spaceList as $space) set::className('px-2 pb-4 overflow-hidden'), div ( - set::className('kanban-card border px-4 pb-2 pt-1'), + set::className('kanban-card border px-4 pb-2 pt-1 open-url'), set('data-url', createLink('kanban', 'view', "kanbanID=$kanbanID")), div (