Fix hard reference to image asset

Fixes #1713
This commit is contained in:
Daniel Rice 2014-08-20 15:02:34 -04:00
parent c408e66b30
commit e9f8821be0

View file

@ -230,7 +230,7 @@ var TodoItems = {
return confirm(i18n['contexts.new_context_pre'] + givenContextName + i18n['contexts.new_context_post']);
},
generate_predecessor: function(todo_id, todo_spec) {
var img = "<img id=\"delete_dep_"+todo_id+"\" class=\"icon_delete_dep\" src=\""+ relative_to_root('assets/blank.png') + "\">";
var img = "<img id=\"delete_dep_"+todo_id+"\" class=\"icon_delete_dep\" src=\""+ relative_to_root("<%= asset_path('blank.png') %>") + "\">";
var anchor = "<a class=\"icon_delete_dep\" id=\""+todo_id+"\" href=\"#\">" + img + "</a>";
var li = "<li style=\"display:none\" id=\"pred_"+todo_id+"\">"+ anchor +" "+ todo_spec + "</li>";
return li;
@ -1174,4 +1174,4 @@ $(document).ready(function() {
/* Gets called from all AJAX callbacks, too */
enable_rich_interaction();
});
});