mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-29 03:01:58 +08:00
Code style fixies []SCI-2875]
This commit is contained in:
parent
89240659a7
commit
3a4b992f4e
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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 }
|
||||
)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue