Skip to content

Commit

Permalink
Render template earlier in landing.js (#265)
Browse files Browse the repository at this point in the history
The order of operations has been altered in the landing.js file of the BioDataCatalyst UI. The current changes involve rendering the template right after the function is invoked rather than waiting until the end. This reordering will allow the loading icons to display until all ajax request are complete.
  • Loading branch information
Gcolon021 authored Dec 20, 2023
1 parent 77ba348 commit 82e6fce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ define(["underscore", "jquery", "backbone", "handlebars", "text!landing/landing.
window.location.href = "/picsureui/queryBuilder";
},
render: function () {
this.$el.html(this.template());

// get counts for studies and participants
let records = studyUtility.groupRecordsByAccess();

Expand Down Expand Up @@ -97,7 +99,6 @@ define(["underscore", "jquery", "backbone", "handlebars", "text!landing/landing.
spinner.medium(deferredParticipants, "#authorized-participants-spinner", "spinner2");
spinner.medium(deferredParticipants, "#authorized-studies-spinner", "spinner2");

this.$el.html(this.template());
return this;
}
});
Expand Down

0 comments on commit 82e6fce

Please sign in to comment.