1 <% session[:selected_move_items] = params['move_items'] if params['move_items'] %>
2 $('body > .modal-container').html("<%= escape_javascript(render partial: 'choose.html', locals: {multiple: multiple}) %>");
3 $('body > .modal-container .modal').modal('show');
4 $('body > .modal-container .modal .modal-footer .btn-primary').
5 addClass('<%= j params[:action_class] %>').
6 attr('data-action-href', '<%= j params[:action_href] %>').
7 attr('data-method', '<%= j params[:action_method] %>').
8 data('action-data', <%= raw params[:action_data] %>);