* Finish task#41691
This commit is contained in:
@@ -38,7 +38,7 @@ class build extends control
|
||||
$this->executeHooks($buildID);
|
||||
|
||||
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $buildID));
|
||||
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.loadExecutionBuilds($executionID)")); // Code for task #5126.
|
||||
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.loadExecutionBuilds($executionID, $buildID)")); // Code for task #5126.
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('build', 'view', "buildID=$buildID")));
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ function loadExecutionRelated(executionID)
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function loadExecutionBuilds(executionID)
|
||||
function loadExecutionBuilds(executionID, selected)
|
||||
{
|
||||
selectedBuild = $('#build').val();
|
||||
if(!selectedBuild) selectedBuild = 0;
|
||||
@@ -90,6 +90,7 @@ function loadExecutionBuilds(executionID)
|
||||
$('#buildBox').load(link, function()
|
||||
{
|
||||
$('#resolvedBuild').attr('id', 'build').attr('name', 'build').find('option[value=trunk]').remove();
|
||||
if(selected) $('#build').val(selected);
|
||||
$('#build').chosen();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user