Add video image settings to aws settings so that lms can pull values from lms.env.json

This commit is contained in:
Mushtaq Ali
2017-06-08 17:32:09 +05:00
parent cf6200cbb3
commit 7bf717f75d
4 changed files with 57 additions and 46 deletions

View File

@@ -41,7 +41,9 @@ define(
},
removeVideo: function(event) {
var videoView = this;
var $thumbnailEl,
videoView = this,
videoId = videoView.model.get('edx_video_id');
event.preventDefault();
@@ -58,6 +60,11 @@ define(
type: 'DELETE'
}).done(function() {
videoView.remove();
// TODO: Remove this when cleaning up - EDUCATOR-562
$thumbnailEl = $('.thumbnail-error-wrapper[data-video-id="' + videoId + '"]');
if ($thumbnailEl.length) {
$thumbnailEl.remove();
}
});
}
);