[Decapod] Some technical help

Boyan Sheytanov boyan.sheytanov at asteasolutions.com
Fri Feb 19 13:29:16 UTC 2010


Hi all!

I've been experiencing some difficulties testing a modal confirmation
dialog for image deletion. The issue is that I am using
tests.fetchTemplate("../../../components/capture/html/Capture.html",
".flc-capture"); to load the markup into the html test page. If the
confirmation dialog <div> tag is a child of the capture component div,
I get 12(!) dialogs and if I simulate a click on the 'Yes' button,
nothing happens and tests still fail. If the <div> is outside of the
component, I get no dialogs. This has probably something to do with
jQuery moving the entire markup for the dialog directly into the body
on dialog() call. Do you have any experience with testing dialogs or
ideas what to do? You can check out the code from SVN and try it for
yourself.

Additionaly, there are two questions I asked earlier this week in
another thread:

1) What is the best way to sync the server and the client models -
especially what happens in the case of error. I imagine that after
reordering I should post back the new order to the server and then
reflect it in the client. But what happens if there is some failure
and the new order is not updated on the server (meaning the reordering
operation should be reverted)?

2) How can I detect whether the image item I am reordering is being
dragged outside of its parent container (so that I can show an invalid
drop marker)? I tried using the onBeginMove event of the Reorderer and
the mousemove event, but with no success. Is there an easy way I
cannot think about?



More information about the fluid-work mailing list