fusionbox / django-widgy

A CMS framework for Django built on a heterogenous tree editor.
http://wid.gy
Other
333 stars 52 forks source link

Picking up a widget while there's a request in-flight adding the same widget #63

Open gavinwahl opened 11 years ago

gavinwahl commented 11 years ago

The widget you picked up will be ripped out of your hands, and all the drop targets will be messed up.

gavinwahl commented 11 years ago

There might be an easy workaround for this until we can really fix it -- is it possible to to not put the node preview back on the shelf when dropping it in a drop target? It'll get added back when compatibility is refreshed. This would make it impossible to pick up in the window were this bug is possible.

It's not a perfect solution because it prevents you from adding several widgets quickly, but is probably easier to do than a real fix.

rockymeza commented 11 years ago

It's not such a quickfix, what happens if the request fails?

-rocky On Jul 28, 2013 8:46 PM, "Gavin Wahl" notifications@github.com wrote:

There might be an easy workaround for this until we can really fix it -- is it possible to to not put the node preview back on the shelf when dropping it in a drop target? It'll get added back when compatibility is refreshed. This would make it impossible to pick up in the window were this bug is possible.

It's not a perfect solution because it prevents you from adding several widgets quickly, but is probably easier to do than a real fix.

— Reply to this email directly or view it on GitHubhttps://github.com/fusionbox/django-widgy/issues/63#issuecomment-21696973 .