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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Didier (Guest)
on 2006-01-06 01:43
(Received via mailing list)
Hi guys,

I have the following code:

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

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

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

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

Best regards.

This topic is locked and can not be replied to.