Home Company Services Portfolio Contact us nav spacer

Getting rid of default PloneAzax event bindings

by hedley posted on Oct 23, 2007 12:24 PM last modified Oct 23, 2007 12:24 PM

PloneAzax by default binds to the View and Edit tabs, and it pops up that progress box. If this annoys you then it is not that hard to disable.

The PloneAzax.kss file defines the default event bindings. Customize that file and strip away whatever bindings you don't want. In my case I strip away everything and leave a single comment line, eg.
/*this is a comment*/
Now all the default bindings are gone!

Why would you want to get rid of them? Well, event binding is currently very slow (blame cssQuery.js and not the azax team). Stripping them away increases the browser's responsiveness.

If azax now seems totally broken (ie. your own KSS does not seem to kick in) then add the following either to the bottom of main_template or only those templates that are supposed to have event bindings.

<script type="text/javascript">
kukit.setupEvents();
</script>

That call explicitly sets up event bindings.