Skip to content

remove redundant lambda serializer #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions userfiles/minc_file/views/_volume_viewer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ volume_ui_template_id = "volume-ui-template-#{@userfile.id}"
viewable_by_volume_viewer = volumes_info_for_viewer.keys.reject{ |name| name == @userfile.name}
%>

<% json = lambda { |x| JSON[x].html_safe } %>

<div id="brainbrowser-volume-<%= bb_identifier %>"></div>

<div id="global-controls-<%= bb_identifier %>" class="volume-viewer-controls">
Expand Down Expand Up @@ -559,7 +557,7 @@ volume_ui_template_id = "volume-ui-template-#{@userfile.id}"
$(document).ready(function(){
$("#overlay-selection-<%= bb_identifier %>").chosen().change(function(e){
var volume_name = e.target.value;
var volumes_info_for_viewer = <%= json.( volumes_info_for_viewer ) %>;
var volumes_info_for_viewer = <%= raw volumes_info_for_viewer.to_json %>;
var volume_0 = volumes_info_for_viewer["<%= @userfile.name %>"];
var volume_1 = volumes_info_for_viewer[volume_name];

Expand Down