Forum: Ruby on Rails [Ajax] draggable_element with button inside

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee01e594333a9e631173d0d8e4350214?d=identicon&s=25 Didier (Guest)
on 2006-01-06 00:43
(Received via mailing list)
Hi guys,

I have the following code:

<li id="active_task_<%= active_task.id %>">
  <%= active_task.title %>&nbsp;<%= link_to_remote "Edit",
				:update => "active_task_#{active_task.id}",
				:url => { :action => "edit", :id => active_task.id } %>
</li>

The goal is when a user clicks on the "Edit" button, a new html portion
appears
with a html form (in order to modify the name of the task). The previous
code
works. so far so good.
But I added a new javascript feature:

<%= draggable_element "active_task_#{active_task.id}", :revert => true
%>

Now, the problem is that I don't manage to distinct the click on the
"edit"
button and the one for "drag" action.
How to solve this problem ? does a solution exist ?

Thanks
Best regards.

 Didier
This topic is locked and can not be replied to.