From 7b531573d9d8bfd85348b1d2f8f816e926d4cdfd Mon Sep 17 00:00:00 2001 From: wangyuting <851424971@qq.com> Date: Thu, 24 Nov 2022 05:03:27 +0000 Subject: [PATCH] * Optimize code. --- module/build/js/create.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/module/build/js/create.js b/module/build/js/create.js index 89ef6e4d2b..92533b3162 100644 --- a/module/build/js/create.js +++ b/module/build/js/create.js @@ -69,11 +69,17 @@ function loadProducts(executionID) loadLastBuild(); } +/** + * Load last build + * + * @access public + * @return void + */ function loadLastBuild() { - var executionID = $('#execution').val(); - $.get(createLink('build', 'ajaxGetLastBuild', 'projectID=' + projectID + '&executionID=' + executionID), function(data) - { - if(data) $('#lastBuildBox').html(data); - }); + var executionID = $('#execution').val(); + $.get(createLink('build', 'ajaxGetLastBuild', 'projectID=' + projectID + '&executionID=' + executionID), function(data) + { + if(data) $('#lastBuildBox').html(data); + }); }