From 2a2560e30e05f03486741cec8b5cd5c496ce9ae7 Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Thu, 12 May 2016 17:51:29 +0500 Subject: [PATCH] fix the issue where images do not appear when set through asset linkin Studio scheduls and details page --- cms/static/js/views/settings/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cms/static/js/views/settings/main.js b/cms/static/js/views/settings/main.js index 63ab272e1e..dcdf766c53 100644 --- a/cms/static/js/views/settings/main.js +++ b/cms/static/js/views/settings/main.js @@ -305,6 +305,8 @@ var DetailsView = ValidatingView.extend({ this.setField(event); var url = $(event.currentTarget).val(); var image_name = _.last(url.split('/')); + // If image path is entered directly, we need to strip the asset prefix + image_name = _.last(image_name.split('block@')); this.model.set(image_field, image_name); // Wait to set the image src until the user stops typing clearTimeout(this.imageTimer);