diff --git a/app/assets/javascripts/projects/canvas.js.erb b/app/assets/javascripts/projects/canvas.js.erb index 8df86898d..d4f524071 100644 --- a/app/assets/javascripts/projects/canvas.js.erb +++ b/app/assets/javascripts/projects/canvas.js.erb @@ -886,7 +886,7 @@ function bindEditTagsAjax(elements) { $.each(data.my_modules, function(index, my_module){ $('div.panel[data-module-id=' + my_module.id + ']') .find(".edit-tags-link") - .html(my_module.tags); + .html(my_module.tags_html); }); // initialize tooltips again $.initTooltips(); diff --git a/app/controllers/my_module_tags_controller.rb b/app/controllers/my_module_tags_controller.rb index 9a5eb5d31..b40673108 100644 --- a/app/controllers/my_module_tags_controller.rb +++ b/app/controllers/my_module_tags_controller.rb @@ -41,7 +41,7 @@ class MyModuleTagsController < ApplicationController experiment.active_my_modules.each do |my_module| res << { id: my_module.id, - tags: render_to_string( + tags_html: render_to_string( partial: 'canvas/tags.html.erb', locals: { my_module: my_module } ) diff --git a/app/views/experiments/canvas.html.erb b/app/views/experiments/canvas.html.erb index 54cf13687..2769de66f 100644 --- a/app/views/experiments/canvas.html.erb +++ b/app/views/experiments/canvas.html.erb @@ -45,7 +45,7 @@ -
+
<%= render partial: 'canvas/full_zoom', locals: { experiment: @experiment, my_modules: @active_modules } %>