resolve.ui.js 1.0 KB

1234567891011121314151617181920
  1. window.getSolutions = function()
  2. {
  3. const mode = $('input[name=resolution]').val();
  4. loadTarget($.createLink('issue', 'ajaxGetResolveForm', `projectID=${projectID}&issueID=${issueID}&mode=${mode}&from=${from}`), '#resolvePanel');
  5. }
  6. window.loadProduct = function()
  7. {
  8. const productID = $('#resolveForm input[name=product]').val();
  9. const mode = $('input[name=resolution]').val();
  10. loadTarget($.createLink('issue', 'ajaxGetResolveForm', `projectID=${projectID}&issueID=${issueID}&mode=${mode}&from=${from}&params=productID=${productID}`), '#resolvePanel');
  11. }
  12. window.loadBranch = function()
  13. {
  14. const productID = $('#resolveForm input[name=product]').val();
  15. const branch = $('#resolveForm input[name=branch]').length ? $('#resolveForm input[name=branch]').val() : 0;
  16. const mode = $('input[name=resolution]').val();
  17. loadTarget($.createLink('issue', 'ajaxGetResolveForm', `projectID=${projectID}&issueID=${issueID}&mode=${mode}&from=${from}&params=productID=${productID},branch=${branch}`), '#resolvePanel');
  18. }