Removes calls to link_to_remote.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10037 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cc553764ba
commit
690b0fb08c
|
@ -30,10 +30,8 @@ module WatchersHelper
|
||||||
:action => (watched ? 'unwatch' : 'watch'),
|
:action => (watched ? 'unwatch' : 'watch'),
|
||||||
:object_type => object.class.to_s.underscore,
|
:object_type => object.class.to_s.underscore,
|
||||||
:object_id => object.id}
|
:object_id => object.id}
|
||||||
link_to_remote((watched ? l(:button_unwatch) : l(:button_watch)),
|
link_to((watched ? l(:button_unwatch) : l(:button_watch)), url,
|
||||||
{:url => url},
|
:remote => true, :method => 'post', :class => (watched ? 'icon icon-fav' : 'icon icon-fav-off'))
|
||||||
:href => url_for(url),
|
|
||||||
:class => (watched ? 'icon icon-fav' : 'icon icon-fav-off'))
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -57,11 +55,8 @@ module WatchersHelper
|
||||||
:object_id => object.id,
|
:object_id => object.id,
|
||||||
:user_id => user}
|
:user_id => user}
|
||||||
s << ' '
|
s << ' '
|
||||||
s << link_to_remote(image_tag('delete.png'),
|
s << link_to(image_tag('delete.png'), url,
|
||||||
{:url => url},
|
:remote => true, :method => 'post', :style => "vertical-align: middle", :class => "delete")
|
||||||
:href => url_for(url),
|
|
||||||
:style => "vertical-align: middle",
|
|
||||||
:class => "delete")
|
|
||||||
end
|
end
|
||||||
content << content_tag('li', s)
|
content << content_tag('li', s)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue