* Optimize code for task #62494.

This commit is contained in:
liumengyi
2022-07-28 10:02:43 +08:00
parent e13315a151
commit 1375165c73
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ js::set('priv',
$actions .= "<div class='btn-group menu-actions'>";
$actions .= html::a('javascript:;', "<i class='icon icon-ellipsis-v'></i>", '', "data-toggle='dropdown' class='btn btn-link'");
$actions .= "<ul class='dropdown-menu pull-right'>";
$width = strpos($this->app->getClientLang(), 'zh') === false ? '600px' : '470px';
$width = common::checkNotCN ? '600px' : '470px';
if($printCreateRegion) $actions .= '<li>' . html::a(helper::createLink('kanban', 'createRegion', "kanbanID=$execution->id&from=execution", '', true), '<i class="icon icon-plus"></i>' . $lang->kanban->createRegion, '', "class='iframe btn btn-link text-left'") . '</li>';
if(common::hasPriv('execution', 'setKanban')) $actions .= '<li>' . html::a(helper::createLink('execution', 'setKanban', "executionID=$execution->id", '', true), '<i class="icon icon-cog-outline"></i>' . $lang->execution->setKanban, '', "class='iframe btn btn-link text-left' data-width='$width'") . '</li>';
$kanbanActions = '';
+1 -1
View File
@@ -71,7 +71,7 @@
</div>
<?php
$width = strpos($this->app->getClientLang(), 'zh') === false ? '600px' : '500px';
$width = common::checkNotCN ? '600px' : '470px';
echo "<div class='btn-group menu-actions'>";
echo html::a('javascript:;', "<i class='icon icon-ellipsis-v'></i>", '', "data-toggle='dropdown' class='btn btn-link'");
echo "<ul class='dropdown-menu pull-right'>";