Merge branch 'sprint/mater_zhouxudong_56368' into 'master'
* Finish task #56368. See merge request easycorp/zentaopms!3850
This commit is contained in:
@@ -1370,9 +1370,9 @@ $(function()
|
||||
|
||||
if(navigator.userAgent.toLowerCase().indexOf("qqbrowser") > -1) $('.region .kanban-header-col > .actions').css('top', '30%');
|
||||
|
||||
$('.icon-chevron-double-up,.icon-chevron-double-down').on('click', function()
|
||||
$('.icon-angle-top,.icon-angle-down').on('click', function()
|
||||
{
|
||||
$(this).toggleClass('icon-chevron-double-up icon-chevron-double-down');
|
||||
$(this).toggleClass('icon-angle-top icon-angle-down');
|
||||
$(this).parents('.region').find('.kanban').toggle();
|
||||
hideKanbanAction();
|
||||
resetRegionHeight($(this).hasClass('icon-chevron-double-up') ? 'open' : 'close');
|
||||
@@ -1530,10 +1530,10 @@ function initSortable()
|
||||
if(sortType == 'region')
|
||||
{
|
||||
showRegionIdList = '';
|
||||
$('.icon-chevron-double-up').each(function()
|
||||
$('.icon-angle-top').each(function()
|
||||
{
|
||||
showRegionIdList += $(this).attr('data-id') + ',';
|
||||
$(this).attr('class', 'icon-chevron-double-down');
|
||||
$(this).attr('class', 'icon-angle-down');
|
||||
});
|
||||
|
||||
$('.region').find('.kanban').hide();
|
||||
@@ -1564,7 +1564,7 @@ function initSortable()
|
||||
{
|
||||
if(showRegionIdList.includes($(this).attr('data-id')))
|
||||
{
|
||||
$(this).find('.icon-chevron-double-down').attr('class', 'icon-chevron-double-up');
|
||||
$(this).find('.icon-angle-down').attr('class', 'icon-angle-top');
|
||||
$(this).find('.kanban').show();
|
||||
}
|
||||
})
|
||||
|
||||
@@ -57,7 +57,7 @@ $canCreateLane = commonModel::hasPriv('kanban', 'createLane');
|
||||
<div class="region<?php if($canSortRegion) echo ' sort';?>" data-id="<?php echo $region->id;?>">
|
||||
<div class="region-header dropdown">
|
||||
<strong><?php echo $region->name;?></strong>
|
||||
<a class="text-muted"><i class="icon icon-chevron-double-up" data-id="<?php echo $region->id;?>"></i></a>
|
||||
<a class="text-muted"><i class="icon icon-angle-top" data-id="<?php echo $region->id;?>"></i></a>
|
||||
<div class='region-actions'>
|
||||
<?php if(($canEditRegion || $canCreateLane || $canDeleteRegion) and !(isset($this->config->CRKanban) and $this->config->CRKanban == '0' and $kanban->status == 'closed')):?>
|
||||
<button class="btn btn-link action" type="button" data-toggle="dropdown"><i class="icon icon-ellipsis-v"></i></button>
|
||||
|
||||
Reference in New Issue
Block a user