public/javascripts/admin/snippets.js in locomotive_cms-0.0.4.beta5 vs public/javascripts/admin/snippets.js in locomotive_cms-0.0.4.beta7
- old
+ new
@@ -14,9 +14,9 @@
$('#snippet_slug').keypress(function() { $(this).addClass('filled'); });
$('a#image-picker-link').imagepicker({
insertFn: function(link) {
- return "{{ theme_images." + link.attr('data-slug') + " }}";
+ return "{{ '" + link.attr('data-local-path') + "' | theme_image_url }}";
}
});
});