[Kss-devel] Changes in action-cancel?

Steve McMahon steve at dcn.org
Mon Apr 14 01:51:35 CEST 2008


Greetings KSS folks!

Somewhere between Plone 3.0 and 3.1 some I used to cancel a blur server action
has stopped working.

The Archetypes KSS support includes:

input.blurrable:blur {
    action-server:                kssValidateField;
    kssValidateField-fieldname:   kssAttr('atfieldname', true);
    kssValidateField-value:       currentFormVar();
    kssValidateField-uid:         kssAttr('atuid', true);
}

PloneFormGen, which reuses the Archetypes fields, needs to avoid the inline
validation, and I've used the code:

.pfg-form input.blurrable:blur {
    action-cancel: kssValidateField;
}

I'm pretty sure that was working in Plone 3.0, but the server event is occurring
in Plone 3.1. If I use:

.pfg-form input.blurrable:blur {
        action-client:     alert;
        alert-message:     "from ploneformgen.kss";
}

I do get the expected alert.

Please let me know if I completely off base, or if there's any more I could do
to track this down.

Thanks! Steve




More information about the Kss-devel mailing list