* Adjust code style.

This commit is contained in:
dingna
2021-10-29 10:44:28 +08:00
parent 6d701ebc81
commit 5217e0dfc2
3 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -3257,9 +3257,9 @@ class execution extends control
* @access public
* @return void
*/
public function ajaxGetGroup($type, $group='id')
public function ajaxGetGroup($type, $group = 'default')
{
$this->loadModel('kanban');
$this->app->loadLang('kanban');
$groups = array();
$groups = $this->lang->kanban->group->$type;
die(html::select("group", $groups, $group, 'class="form-control chosen" data-max_drop_width="215"'));
+1 -1
View File
@@ -15,4 +15,4 @@
.dropdown-menu a {text-align: left;}
.scrollbar-hover {max-height: 2000px; overflow: scroll !important;}
.c-type, .c-group {width: 150px !important; overflow: unset; display:""}
.c-type, .c-group {width: 150px !important; overflow: unset; display: "";}
+8 -9
View File
@@ -692,7 +692,7 @@ $(function()
}
};
/* Restore select menu */
/* Hide second menu. */
restoreSelect();
/* Create story kanban 创建需求看板 */
@@ -706,7 +706,10 @@ $(function()
});
/**
* Restore select menu.
* Hide second menu.
*
* @access public
* @return void
*/
function restoreSelect()
{
@@ -714,13 +717,11 @@ function restoreSelect()
if(type == 'all') $('.c-group').css("display", "none");
}
/**
* Choose type.
*/
$('#type').change(function()
{
var type = $('#type').val();
$('.c-group').css("display", "");
var type = $('#type').val();
if(type == 'all')
{
$('.c-group').css("display", "none");
@@ -734,13 +735,11 @@ $('#type').change(function()
$('#group').chosen();
})
}
var link = createLink('execution', 'kanban', "executionID=" + executionID + '&type=' + type);
location.herf = link;
});
/**
* Choose group of lane.
*/
$('.c-group').change(function()
{
$('.c-group').css("display","");