* Adjust code style.
This commit is contained in:
@@ -710,11 +710,8 @@ $(function()
|
||||
*/
|
||||
function restoreSelect()
|
||||
{
|
||||
var type = $('#type').val();
|
||||
if(type == 'all')
|
||||
{
|
||||
$('.c-group').css("display","none");
|
||||
}
|
||||
var type = $('#type').val();
|
||||
if(type == 'all') $('.c-group').css("display", "none");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -722,11 +719,11 @@ function restoreSelect()
|
||||
*/
|
||||
$('#type').change(function()
|
||||
{
|
||||
var type = $('#type').val();
|
||||
$('.c-group').css("display","");
|
||||
var type = $('#type').val();
|
||||
$('.c-group').css("display", "");
|
||||
if(type == 'all')
|
||||
{
|
||||
$('.c-group').css("display","none");
|
||||
$('.c-group').css("display", "none");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -745,8 +742,9 @@ $('#type').change(function()
|
||||
$('.c-group').change(function()
|
||||
{
|
||||
$('.c-group').css("display","");
|
||||
var type = $('#type').val();
|
||||
var group = $('#group').val();
|
||||
|
||||
var type = $('#type').val();
|
||||
var group = $('#group').val();
|
||||
link = createLink('execution', 'kanban', 'executionID=' + executionID + '&type=' + type + '&orderBy=order_asc' + '&group=' + group);
|
||||
location.href = link;
|
||||
});
|
||||
|
||||
@@ -13,8 +13,13 @@
|
||||
<?php js::set('executionID', $executionID);?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<div class="input-control space c-type"><i class="icon icon-list-all"></i><?php echo html::select('type', $lang->kanban->type, $type, 'class="form-control chosen" data-max_drop_width="215"');?></div>
|
||||
<div class="input-control space c-group"><?php echo html::select('group', $lang->kanban->group->$type, $group, 'class="form-control chosen" data-max_drop_width="215"');?></div>
|
||||
<div class="input-control space c-type">
|
||||
<i class="icon icon-list-all"></i>
|
||||
<?php echo html::select('type', $lang->kanban->type, $type, 'class="form-control chosen" data-max_drop_width="215"');?>
|
||||
</div>
|
||||
<div class="input-control space c-group">
|
||||
<?php echo html::select('group', $lang->kanban->group->$type, $group, 'class="form-control chosen" data-max_drop_width="215"');?>
|
||||
</div>
|
||||
</div>
|
||||
<div class='btn-toolbar pull-right'>
|
||||
<?php
|
||||
|
||||
@@ -10,7 +10,6 @@ $lang->kanban->type['bug'] = "bug看板";
|
||||
$lang->kanban->group = new stdClass();
|
||||
|
||||
$lang->kanban->group->all = array();
|
||||
|
||||
$lang->kanban->group->story = array();
|
||||
$lang->kanban->group->story['default'] = "默认方式";
|
||||
$lang->kanban->group->story['pri'] = "需求优先级";
|
||||
|
||||
Reference in New Issue
Block a user