From d4f79c0498775aa2540cc557d205bfc590be55e9 Mon Sep 17 00:00:00 2001 From: cahrens Date: Wed, 16 Jan 2013 13:51:17 -0500 Subject: [PATCH] Fix bug related to img link for non-img files. https://edx.lighthouseapp.com/projects/102637-studio/tickets/135-via-tender-studio-asset-locker-currently-returns-incorrect-xml-snippet --- cms/static/js/base.js | 2 +- cms/templates/asset_index.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 4137690395..e99fc9a4da 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -498,7 +498,7 @@ function displayFinishedUpload(xhr) { } var resp = JSON.parse(xhr.responseText); - $('.upload-modal .embeddable-xml-input').val(''); + $('.upload-modal .embeddable-xml-input').val(xhr.getResponseHeader('asset_url')); $('.upload-modal .embeddable').show(); $('.upload-modal .file-name').hide(); $('.upload-modal .progress-fill').html(resp.msg); diff --git a/cms/templates/asset_index.html b/cms/templates/asset_index.html index ca205157ab..01766e2dac 100644 --- a/cms/templates/asset_index.html +++ b/cms/templates/asset_index.html @@ -28,7 +28,7 @@ {{uploadDate}} - + @@ -69,7 +69,7 @@ ${asset['uploadDate']} - + % endfor @@ -99,8 +99,8 @@
- - + +