diff --git a/module/bug/js/common.js b/module/bug/js/common.js index 1171e7cbed..a631160093 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -96,15 +96,12 @@ function loadBranch() /** *Load all builds of one project or product. * - * @param that $that + * @param object $object * @access public * @return void */ -function loadAllBuilds(that) +function loadAllBuilds(object) { - that = (typeof that == undefined) ? undefined : that; - resolvedBuildBox = (typeof resolvedBuildBox == undefined) ? false : resolvedBuildBox; - if(page == 'resolve') { oldResolvedBuild = $('#resolvedBuild').val() ? $('#resolvedBuild').val() : 0; @@ -117,7 +114,7 @@ function loadAllBuilds(that) projectID = $('#project').val(); var buildBox = ''; - if(page == 'edit') buildBox = $(that).closest('.input-group').attr('id'); + if(page == 'edit') buildBox = $(object).closest('.input-group').attr('id'); if(projectID) {