edit.ui.js 744 B

12345678910111213141516171819202122232425262728
  1. window.loadSystemBlock = function()
  2. {
  3. const systemID = $('[name=system]').val();
  4. if(!systemID || !appList[systemID]) return;
  5. $('#systemBlock, #buildBox').addClass('hidden');
  6. if(appList[systemID].integrated == 1)
  7. {
  8. if(typeof linkedRelease == 'undefined') linkedRelease = '';
  9. $('#systemBlock').removeClass('hidden');
  10. loadTarget($.createLink('release', 'ajaxLoadSystemBlock', `systemID=${systemID}&release=${linkedRelease}&releaseID=${releaseID}`), 'systemItems');
  11. }
  12. else
  13. {
  14. window.loadBuilds(productID);
  15. $('#buildBox').removeClass('hidden');
  16. }
  17. };
  18. $(function()
  19. {
  20. setTimeout(function()
  21. {
  22. changeStatus();
  23. window.loadSystemBlock();
  24. }, 100);
  25. })