Skip to content

Commit

Permalink
Merge 84f0e9e into b1e3f9d
Browse files Browse the repository at this point in the history
  • Loading branch information
acdha committed May 21, 2019
2 parents b1e3f9d + 84f0e9e commit a5c3f91
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions concordia/static/js/action-app/index.js
Expand Up @@ -128,12 +128,17 @@ export class ActionApp {
return;
}

let allAssetsURL = this.urlTemplates.assetData.expand({
// This is a special-case for retrieving all assets regardless of status
action: 'assets'
});
let assetDataURL = new URL(
this.urlTemplates.assetData.expand({
// This is a special-case for retrieving all assets regardless of status
action: 'assets'
}),
document.location.href
);

assetDataURL.searchParams.set('pk', assetId);

this.fetchAssetPage(allAssetsURL + '?pk=' + assetId).then(() => {
this.fetchAssetPage(assetDataURL).then(() => {
this.assetList.updateCallbacks.push(() => {
let element = document.getElementById(assetId);
if (!element) {
Expand Down

0 comments on commit a5c3f91

Please sign in to comment.