browse.ui.js 722 B

1234567891011121314151617181920
  1. function changeBrowseDate()
  2. {
  3. const begin = $('[name="begin"]').val().replaceAll('-', '');
  4. const end = $('[name="end"]').val().replaceAll('-', '');
  5. const params = condition + '&beginTime=' + begin + '&endTime=' + end;
  6. loadPage($.createLink('testtask', 'browse', params), '#mainContent');
  7. };
  8. window.onRenderCell = function(result, {row, col})
  9. {
  10. if(result && col.name == 'buildName' && multipleSprints[row.data.execution] == undefined)
  11. {
  12. if(result[0].props) result[0].props['data-app'] = 'project';
  13. }
  14. else if(col.name == 'status' && result)
  15. {
  16. result[0] = {html: `<span class='status-${row.data.rawStatus}'>` + row.data.status + "</span>"};
  17. }
  18. return result;
  19. }