importissue.ui.js 689 B

1234567891011121314151617181920212223
  1. window.renderRowCol = function(result, col, row)
  2. {
  3. if(col.name == 'title_static')
  4. {
  5. $(result[0]).html('<a href="' + row.web_url + '" target="_blank">' + row.title + '</a>');
  6. }
  7. return result;
  8. }
  9. function loadProductExecutions(event)
  10. {
  11. const $target = $(event.target);
  12. const $currentRow = $target.closest('tr');
  13. const host = $target.val();
  14. const projects = $currentRow.find('div.picker-box[data-name="executionList"]');
  15. $.get($.createLink('gitlab', 'ajaxGetExecutionsByProduct', 'host=' + host), function(response)
  16. {
  17. var items = JSON.parse(response);
  18. $(projects).zui('picker').render({items: items});
  19. });
  20. }