diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index db73d22aa..f83703933 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -179,12 +179,6 @@ } Danbooru.Post.initialize_links = function() { - $("#side-edit-link").click(function(e) { - $("#post-edit-link").trigger("click"); - $("#post_tag_string").trigger("focus"); - e.preventDefault(); - }); - $("#copy-notes").click(function(e) { var current_post_id = $("meta[name=post-id]").attr("content"); var other_post_id = parseInt(prompt("Enter the ID of the post to copy all notes to:"), 10); diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index c6f2d150e..4dd1f90d4 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -2,19 +2,17 @@
  • <%= link_to "Resize to window", "#", :id => "image-resize-to-window-link" %>
  • <%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites", :title => "Shortcut is F" %>
  • <%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %>
  • -
  • <%= link_to "Edit", "#", :id => "side-edit-link" %>
  • <%= link_to_if post.visible?, "Download", post.file_url, :download => post.presenter.humanized_essential_tag_string + " - " + post.file_name %>
  • -
  • <%= link_to "Random post", random_posts_path(:tags => params[:tags]), :id => "random-post" %>
  • <%= link_to "Add to pool", "#", :id => "pool" %>
  • <% if post.is_note_locked? %>
  • Note locked
  • <% else %> -
  • <%= link_to "Add notes", "#", :id => "translate", :title => "Shortcut is N" %>
  • +
  • <%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is N" %>
  • <% end %> <% if CurrentUser.is_builder? && post.has_notes? %> -
  • <%= link_to "Copy all notes", "#", :id => "copy-notes" %>
  • +
  • <%= link_to "Copy notes", "#", :id => "copy-notes" %>
  • <% end %> -
  • <%= link_to "Add artist commentary", "#", :id => "add-commentary" %>
  • +
  • <%= link_to "Add commentary", "#", :id => "add-commentary" %>
  • <%= link_to "Add to favorite group", "#", :id => "open-favgroup-dialog-link" %>
  • <%= link_to "Find similar", iqdb_queries_path(:post_id => post.id), :method => :post, :remote => true %>