[Decapod] Some technical help
Boyan Sheytanov
boyan.sheytanov at asteasolutions.com
Mon Feb 22 14:53:26 UTC 2010
Hi again!
An additional question popped up:
3) How can I prevent navigation in the ImageReorderer to move from the last
thumbnail to the first one (I don't want to cycle through images, but
instead stop at the end)?
Greetings, Boyan
On 19 February 2010 15:29, Boyan Sheytanov <
boyan.sheytanov at asteasolutions.com> wrote:
> 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?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://fluidproject.org/pipermail/fluid-work/attachments/20100222/ab4c8d87/attachment.html>
More information about the fluid-work
mailing list