Skip to content

Commit 6d08285

Browse files
committed
Disable share on content#edit, add confirmation dialog to deleting content
1 parent 8ab97e7 commit 6d08285

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/views/content/form/_actions_dropdown.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
<% end %>
66

77
<ul id='options-menu' class='dropdown-content'>
8-
<%# TODO: something with these %>
8+
<!-- Broken on content edit pages
99
<li><a href="#!" class="share">Share this <%= content.class.to_s.downcase %></a></li>
1010
<li class="divider"></li>
11+
-->
1112
<% if content.persisted? %>
1213
<li>
1314
<%= link_to "Delete this #{content.class.to_s.downcase} forever", content,
1415
:class => 'red-text',
1516
:method => :delete,
16-
:confirm => 'Are you sure? This action cannot be undone!' %>
17+
:data => { :confirm => 'Are you sure? This action cannot be undone!' } %>
1718
</li>
1819
<% end %>
1920
</ul>

0 commit comments

Comments
 (0)