Code style fixies []SCI-2875]

This commit is contained in:
Oleksii Kriuchykhin 2019-01-14 16:31:23 +01:00
parent 89240659a7
commit 3a4b992f4e
3 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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 }
)

View file

@ -45,7 +45,7 @@
</div>
</div>
<div id="canvas-container" data-project-id="<%= @project.id %>" data-module-tags-url="<%= my_module_tags_experiment_path(@experiment) %>">
<div id="canvas-container" data-project-id="<%= @project.id %>" data-module-tags-url="<%= my_module_tags_experiment_path(@experiment, format: :json) %>">
<%= render partial: 'canvas/full_zoom', locals: { experiment: @experiment, my_modules: @active_modules } %>
</div>
</div>