* Code for bug 19255.
This commit is contained in:
@@ -277,7 +277,7 @@ function loadProductExecutions(productID, projectID = 0)
|
||||
$('#executionIdBox').load(link, function()
|
||||
{
|
||||
$(this).find('select').chosen();
|
||||
if(typeof(bugExecution) == 'string' && systemMode != 'classic') $('#executionIdBox').prepend("<span class='input-group-addon' style='border-left-width: 0px;'>" + bugExecution + "</span>");
|
||||
if(typeof(bugExecution) == 'string' && systemMode != 'classic') $('#executionIdBox').prepend("<span class='input-group-addon' id='executionBox' style='border-left-width: 0px;'>" + bugExecution + "</span>");
|
||||
if(required) $(this).addClass('required');
|
||||
});
|
||||
loadProjectBuilds(projectID);
|
||||
|
||||
@@ -161,8 +161,16 @@ $(function()
|
||||
$('#project').change(function()
|
||||
{
|
||||
var projectID = parseInt($(this).val());
|
||||
var link = createLink('bug', 'ajaxGetExecutionLang', 'projectID=' + projectID);
|
||||
projectID ? loadProjectTeamMembers(projectID) : loadExecutionTeamMembers($('#product').val());
|
||||
$.post(link, function(executionLang)
|
||||
{
|
||||
bugExecution = executionLang;
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
$(window).unload(function(){
|
||||
|
||||
@@ -108,7 +108,7 @@ if($this->app->tab == 'project') js::set('objectID', $projectID);
|
||||
</div>
|
||||
<div class='table-col'>
|
||||
<div class='input-group' id='executionIdBox'>
|
||||
<span class='input-group-addon fix-border'><?php echo (isset($project->model) and $project->model == 'kanban') ? $lang->bug->kanban : $lang->bug->execution;?></span>
|
||||
<span class='input-group-addon fix-border' id='executionBox'><?php echo (isset($project->model) and $project->model == 'kanban') ? $lang->bug->kanban : $lang->bug->execution;?></span>
|
||||
<?php echo html::select('execution', $executions, $executionID, "class='form-control chosen' onchange='loadExecutionRelated(this.value)'");?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user