diff --git a/cms/static/js/base.js b/cms/static/js/base.js index a07ba7702f..256759e7d8 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -327,7 +327,7 @@ function startUpload(e) { function resetUploadBar(){ var percentVal = '0%'; - $('.upload-modal .progress-fill').width(percentVal) + $('.upload-modal .progress-fill').width(percentVal); $('.upload-modal .progress-fill').html(percentVal); } @@ -344,6 +344,7 @@ function displayFinishedUpload(xhr) { $('.upload-modal .copy-button').attr('href', xhr.getResponseHeader('asset_url')); $('.upload-modal .progress-fill').html(xhr.responseText); $('.upload-modal .choose-file-button').html('Load Another File').show(); + $('.upload-modal .progress-fill').width('100%'); } function markAsLoaded() { @@ -355,6 +356,7 @@ function hideModal(e) { e.preventDefault(); $('.modal').hide(); $modalCover.hide(); + location.reload(); } function onKeyUp(e) { diff --git a/cms/templates/asset_index.html b/cms/templates/asset_index.html index 1b3ffb6d5d..1d093c1365 100644 --- a/cms/templates/asset_index.html +++ b/cms/templates/asset_index.html @@ -1,7 +1,7 @@ <%inherit file="base.html" /> <%! from django.core.urlresolvers import reverse %> <%block name="bodyclass">assets -<%block name="title">CMS Courseware Overview +<%block name="title">Courseware Assets <%block name="content">