* fix style of list-group in dropdown-menu.

This commit is contained in:
Catouse
2018-09-20 13:42:39 +08:00
parent d8bab691b5
commit 3559387c5f
3 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -297,7 +297,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>
</div>
<?php else:?>
<div class="dropdown-menu">
<div class="dropdown-menu search-list">
<?php endif;?>
<div class="list-group">
<?php
@@ -323,7 +323,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>
</div>
<?php else:?>
<div class="dropdown-menu">
<div class="dropdown-menu search-list">
<?php endif;?>
<div class="list-group">
<?php
@@ -349,7 +349,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>
</div>
<?php else:?>
<div class="dropdown-menu">
<div class="dropdown-menu search-list">
<?php endif;?>
<div class="list-group">
<?php
+4 -4
View File
@@ -238,7 +238,7 @@ js::set('browseType', $browseType);
<div class="table-footer">
<div class="checkbox-primary check-all"><label><?php echo $lang->selectAll?></label></div>
<div class="table-actions btn-toolbar">
<?php
<?php
$canBatchEdit = common::hasPriv('task', 'batchEdit', !empty($task) ? $task : null);
$canBatchClose = (common::hasPriv('task', 'batchClose', !empty($task) ? $task : null) && strtolower($browseType) != 'closedBy');
$canBatchCancel = common::hasPriv('task', 'batchCancel', !empty($task) ? $task : null);
@@ -246,7 +246,7 @@ js::set('browseType', $browseType);
$canBatchAssignTo = common::hasPriv('task', 'batchAssignTo', !empty($task) ? $task : null);
?>
<div class='btn-group dropup'>
<?php
<?php
$actionLink = $this->createLink('task', 'batchEdit', "projectID=$projectID");
$disabled = $canBatchEdit ? '' : "disabled='disabled'";
@@ -276,7 +276,7 @@ js::set('browseType', $browseType);
<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>
</div>
<?php else:?>
<div class="dropdown-menu">
<div class="dropdown-menu search-list">
<?php endif;?>
<div class="list-group">
<?php
@@ -307,7 +307,7 @@ js::set('browseType', $browseType);
<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>
</div>
<?php else:?>
<div class="dropdown-menu">
<div class="dropdown-menu search-list">
<?php endif;?>
<div class="list-group">
<?php
+11 -11
View File
@@ -64,7 +64,7 @@ js::set('suiteID', $suiteID);
</div>
<?php
$vars = "productID=$productID&branch=$branch&browseType=$browseType&param=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";
if($useDatatable) include '../../common/view/datatable.html.php';
else include '../../common/view/tablesorter.html.php';
$setting = $this->datatable->getSetting('testcase');
@@ -102,18 +102,18 @@ js::set('suiteID', $suiteID);
<div class='btn-group dropup'>
<?php
$class = "class='disabled'";
$actionLink = $this->createLink('testcase', 'batchEdit', "productID=$productID&branch=$branch");
$misc = common::hasPriv('testcase', 'batchEdit') ? "onclick=\"setFormAction('$actionLink')\"" : "disabled='disabled'";
echo html::commonButton($lang->edit, $misc);
?>
<button type='button' class='btn dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>
<ul class='dropdown-menu' id='moreActionMenu'>
<?php
<?php
$actionLink = $this->createLink('testcase', 'batchDelete', "productID=$productID");
$misc = common::hasPriv('testcase', 'batchDelete') ? "onclick=\"confirmBatchDelete('$actionLink')\"" : $class;
echo "<li>" . html::a('#', $lang->delete, '', $misc) . "</li>";
if(common::hasPriv('testcase', 'batchReview') and ($config->testcase->needReview or !empty($config->testcase->forceReview)))
{
echo "<li class='dropdown-submenu'>";
@@ -127,19 +127,19 @@ js::set('suiteID', $suiteID);
}
echo '</ul></li>';
}
if(common::hasPriv('testcase', 'batchConfirmStoryChange'))
{
$actionLink = $this->createLink('testcase', 'batchConfirmStoryChange', "productID=$productID");
$misc = common::hasPriv('testcase', 'batchConfirmStoryChange') ? "onclick=\"setFormAction('$actionLink')\"" : $class;
echo "<li>" . html::a('#', $lang->testcase->confirmStoryChange, '', $misc) . "</li>";
}
$actionLink = $this->createLink('testtask', 'batchRun', "productID=$productID&orderBy=$orderBy");
$misc = common::hasPriv('testtask', 'batchRun') ? "onclick=\"setFormAction('$actionLink')\"" : $class;
echo "<li>" . html::a('#', $lang->testtask->runCase, '', $misc) . "</li>";
if(common::hasPriv('testcase', 'batchCaseTypeChange'))
{
echo "<li class='dropdown-submenu'>";
@@ -168,7 +168,7 @@ js::set('suiteID', $suiteID);
<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>
</div>
<?php else:?>
<div class="dropdown-menu">
<div class="dropdown-menu search-list">
<?php endif;?>
<div class="list-group">
<?php
@@ -194,7 +194,7 @@ js::set('suiteID', $suiteID);
<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>
</div>
<?php else:?>
<div class="dropdown-menu">
<div class="dropdown-menu search-list">
<?php endif;?>
<div class="list-group">
<?php
@@ -217,7 +217,7 @@ js::set('suiteID', $suiteID);
</div>
</div>
<script>
$('#module' + moduleID).closest('li').addClass('active');
$('#module' + moduleID).closest('li').addClass('active');
$('#' + caseBrowseType + 'Tab').addClass('btn-active-text').find('.text').after(" <span class='label label-light label-badge'><?php echo $pager->recTotal;?></span>");
<?php if($useDatatable):?>
$(function(){$('#caseForm').table();})