From 1eb6f0f8dd11448253757b735d8795da2b92b143 Mon Sep 17 00:00:00 2001 From: Henrik Bohre Date: Sun, 16 Aug 2009 23:12:49 +0200 Subject: [PATCH] #300: Added tooltip and improved look on remove dependency button --- app/views/todos/_successor.html.erb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/views/todos/_successor.html.erb b/app/views/todos/_successor.html.erb index 82d74f56..49b2ac63 100644 --- a/app/views/todos/_successor.html.erb +++ b/app/views/todos/_successor.html.erb @@ -12,12 +12,13 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag' <%= h sanitize(successor.description) %> <%= link_to_remote( - image_tag("delete_off.png", :mouseover => "delete_on.png", :alt => "Remove the dependency", :align => "absmiddle"), - :url => {:controller => 'todos', :action => 'remove_predecessor', :id => successor.id}, - :method => 'delete', - :with => "'#{parameters}&predecessor=#{predecessor.id}'", - :before => todo_start_waiting_js(dom_id(successor, 'successor')), - :complete => todo_stop_waiting_js) %> + image_tag("blank.png", :title => "Remove dependency (does not delete the action)", :align => "absmiddle", :class => "delete_item"), + {:url => {:controller => 'todos', :action => 'remove_predecessor', :id => successor.id}, + :method => 'delete', + :with => "'#{parameters}&predecessor=#{predecessor.id}'", + :before => todo_start_waiting_js(dom_id(successor, 'successor')), + :complete => todo_stop_waiting_js}, + {:style => "background: transparent;"}) %> <%= render(:partial => "todos/toggle_successors", :locals => { :item => successor, :suppress_button => true }) unless successor.pending_successors.empty? %>