Ryan Gahl escribió:
Hi!
I read these threat but draggableElement.draggable.options.revert =
false; doesn't work
the error is: draggableElement.draggable has no properties
Any Idea?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
Mis, Can we please see the rest of the code so we can put your question
into better context to try to troubleshoot your problem?
PS: A couple people on this list now have called me out as being a
notorious "top-poster". I just want to let everyone know that I
apologize if my posting style has not conformed to the group's
preferences, and I'm changing my ways :-)
The information transmitted in this electronic mail is intended only for the
person or entity to which it is addressed and may contain confidential,
proprietary, and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from all computers.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Sure!
this is the complete options for the droppable I'd used:
var opciones_papelera = {
hoverclass: "PapeleraSeleccionada",
onDrop: function(elemento, contenedor)
{
//elemento.draggable.options.revert = false;
var id = elemento.id.split("_")[1]
if( confirm("Borro " + id + "?") )
{
Notificar("Borrando " + id + "...", 1)
var ajax = new Ajax.Request(elemento.getAttribute("borraren"), {
onSuccess: function()
{
Element.remove(elemento.id)
Notificar("Se ha borrado " + id, 0)
},
on204: function()
{
padre = elemento.parentNode
var ajaxSinDatos = new Ajax.Adder(padre.id,
padre.getAttribute('sindatos'))
Element.remove(element.id)
Notificar("Se ha borrado " + id + ". No hay datos", 0)
},
onFailure: function()
{
//elemento.draggable.options.revert = true;
Notificar("No se ha borrado " + id, 0)
}
}
)
}
},
}
If I uncomment this line:
//elemento.draggable.options.revert = false;
javascript raises the error
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs