|
|
|
|
@ -259,11 +259,11 @@ function create_new_project_panel(project) {
|
|
|
|
|
|
|
|
|
|
var latest_uuid_url;
|
|
|
|
|
if ($.panel == 'project_uuid') {
|
|
|
|
|
latest_uuid_url = '../latest';
|
|
|
|
|
latest_uuid_url = '../latest/';
|
|
|
|
|
} else if ($.panel == 'release') {
|
|
|
|
|
latest_uuid_url = project + '/latest';
|
|
|
|
|
latest_uuid_url = project + '/latest/';
|
|
|
|
|
} else {
|
|
|
|
|
latest_uuid_url = 'latest';
|
|
|
|
|
latest_uuid_url = 'latest/';
|
|
|
|
|
}
|
|
|
|
|
$('.latest-uuid-url', div_project).attr('href', latest_uuid_url);
|
|
|
|
|
$('.error', div_project).attr('id', project + '-error').removeClass('error');
|
|
|
|
|
@ -384,12 +384,15 @@ function get_uuids_for_project(release, project) {
|
|
|
|
|
|
|
|
|
|
function successFunc(data, textStatus, jqXHR ) {
|
|
|
|
|
$(data).each(function() {
|
|
|
|
|
if($.release[project].removed_uuids.has(this.tag)){
|
|
|
|
|
/* skip iteration */
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (this.latest && $.release[project].last_uuid != this.tag) {
|
|
|
|
|
$.release[project].last_uuid = this.tag;
|
|
|
|
|
console.debug(project + ".latest_uuid:" + $.release[project].last_uuid);
|
|
|
|
|
}
|
|
|
|
|
if (!$.release[project].uuids.has(this.tag) &&
|
|
|
|
|
!$.release[project].removed_uuids.has(this.tag))
|
|
|
|
|
if (!$.release[project].uuids.has(this.tag))
|
|
|
|
|
{
|
|
|
|
|
create_new_uuid(release, project, this);
|
|
|
|
|
}
|
|
|
|
|
|