* finish task#1599.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
$(function()
|
||||
{
|
||||
$(".chosenBox select").chosen({no_results_text: noResultsMatch});
|
||||
$(".chzn-container-multi .chzn-choices li.search-field input").attr('value', chooseBuilds);
|
||||
})
|
||||
|
||||
/**
|
||||
* Load project builds
|
||||
*
|
||||
* @param int $productID
|
||||
* @param int $projectID
|
||||
* @param int $index
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function loadProjectBuilds(productID, projectID, index)
|
||||
{
|
||||
if(projectID)
|
||||
{
|
||||
link = createLink('build', 'ajaxGetProjectBuilds', 'projectID=' + projectID + '&productID=' + productID + '&varName=openedBuild');
|
||||
}
|
||||
else
|
||||
{
|
||||
link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild');
|
||||
}
|
||||
|
||||
$.get(link, function(builds)
|
||||
{
|
||||
$('#buildBox' + index).html(builds);
|
||||
$('#openedBuilds' + index + '_chzn').remove();
|
||||
$('#buildBox' + index + ' select').removeClass('select-3');
|
||||
$('#buildBox' + index + ' select').addClass('select-1');
|
||||
$('#buildBox' + index + ' select').attr('id', 'openedBuilds[' + index + '][]');
|
||||
$('#buildBox' + index + ' select').chosen({no_results_text: ''});
|
||||
$('#buildBox' + index + ' .chzn-container-multi .chzn-choices li.search-field input').attr('value', chooseBuilds);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user