Skip to content

Commit

Permalink
Enable reselection of resource after removal (#3216)
Browse files Browse the repository at this point in the history
* enable reselection of resource after removal

* use content_tag
  • Loading branch information
NicholasKirchner authored and parndt committed Jul 19, 2016
1 parent 63bab6b commit acb4088
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/app/views/refinery/admin/_resource_picker.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= f.hidden_field field %>

<div>
<%= action_icon :add, insert_link, t('.name'), id: "current_resource_link_#{field}" unless resource %>
<%= content_tag(:div, id: "no_resource_selected_#{field}", style: ("display: none;" if resource)) do %>
<%= action_icon :add, insert_link, t('.name'), id: "current_resource_link_#{field}" %>
<% end %>

<div id="current_resource_container_<%= field %>" style="margin-top: 10px;<%= ' display: none;' unless resource %>">
<span class="current_resource" id="<%="current_resource_text_#{field}"%>">
Expand Down

0 comments on commit acb4088

Please sign in to comment.