* Code format for task #54349.

This commit is contained in:
liumengyi
2022-05-17 17:16:53 +08:00
parent dfa70c678b
commit 7d2ab19bc4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ function exitFullScreen()
{
$('.region-actions > div > .action').show();
$(".title").attr("disabled", false).css("pointer-events", "auto");
if(kanban.status == 'closed') return;
if(!CRKanban && kanban.status == 'closed') return;
$('#kanbanContainer').removeClass('fullscreen')
.off('scroll', tryUpdateKanbanAffix);
$('.actions').show();
+1 -1
View File
@@ -2940,7 +2940,7 @@ class kanbanModel extends model
$actions .= "<div class='btn-group'>";
$actions .= "<a href='javascript:fullScreen();' id='fullScreenBtn' $btnColor class='btn btn-link'><i class='icon icon-fullscreen'></i> {$this->lang->kanban->fullScreen}</a>";
$CRKanban = !($this->config->CRKanban === '0' and $kanban->status === 'closed');
$CRKanban = !($this->config->CRKanban === '0' and $kanban->status === 'closed');
$printRegionBtn = ($CRKanban and (common::hasPriv('kanban', 'createRegion') or $printSetHeightBtn or common::hasPriv('kanban', 'performable') or common::hasPriv('kanban', 'enableArchived') or common::hasPriv('kanban', 'import') or common::hasPriv('kanban', 'setColumnWidth')));
$printKanbanBtn = (common::hasPriv('kanban', 'edit') or common::hasPriv('kanban', 'close') or common::hasPriv('kanban', 'delete'));
+1 -1
View File
@@ -172,7 +172,7 @@ $app->loadLang('productplan');
</div>
<div class='col-xs-2 card-actions' <?php if($kanban->performable) echo "id='performable'";?>>
<?php
$CRKanban = ($this->config->CRKanban or $kanban->status != 'closed');
$CRKanban = ($this->config->CRKanban or $kanban->status != 'closed');
$canRestore = (commonModel::hasPriv('kanban', 'restoreCard') and $CRKanban);
$canDelete = (commonModel::hasPriv('kanban', 'deleteCard') and $CRKanban);