When making a drop_receiving_element with a :confirm=>'really do it?', the confirm works well for the Ajax.Updater, but the confirm is also in the Droppables.add() options, and it is unquoted, which leads to a javascript error.
Rails 1.2.3
Sample:
<%= drop_receiving_element('photo_trash', :hoverclass=>'dropready', :url=>{:action=>'aj_image_delete'}, :confirm=>"Really delete image?") %>
Yields:
Droppables.add("photo_trash", {confirm:Really delete image?, hoverclass:'dropready', onDrop:function(element){if (confirm('Really delete image?')) { new Ajax.Request('/office/aj_image_delete', {asynchronous:true, evalScripts:true, parameters:'id=' + encodeURIComponent(element.id)}); }}})