| 12345678910111213141516171819202122232425262728293031323334353637 |
- /**
- * Load execution related builds
- *
- * @access public
- * @return void
- */
- function loadProductRelated()
- {
- const productID = $('[name=product]').val();
- loadExecutions(productID);
- loadTestReports(productID);
- loadExecutionBuilds()
- }
- /**
- * Load executions.
- *
- * @param int productID
- * @access public
- * @return void
- */
- function loadExecutions(productID)
- {
- $.get($.createLink('product', 'ajaxGetExecutions', 'productID=' + productID + '&projectID=' + projectID + '&branch='), function(data)
- {
- let $execution = $('[name="execution"]');
- let executionID = $execution.val();
- let $executionPicker = $execution.zui('picker');
- if($executionPicker && data)
- {
- data = JSON.parse(data);
- $executionPicker.render({items: data});
- $executionPicker.$.setValue(executionID);
- }
- });
- }
|