From 3a4b992f4e5bbde6b66f247d24f6e100bbd6c29b Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 14 Jan 2019 16:31:23 +0100 Subject: [PATCH] Code style fixies []SCI-2875] --- app/assets/javascripts/projects/canvas.js.erb | 2 +- app/controllers/my_module_tags_controller.rb | 2 +- app/views/experiments/canvas.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 } %>