plone/mockup — pull request #151 by dextermilo (2013-08-24 21:54:54+00:00)
Title: Refactor Modal templateOptions

@garbas and @vangheem would you take a look at this please,

I have changed the way that the actionOptions and templateOptions are used on Modal. Namely, most of the options on templateOptions have been moved to the root options object. This means that instead of:

templateOptions.actionsOptions.displayInModal = false;

you can use:

actionOptions.displayInModal = false;

In addition templateOptions can be applied to specific actions which will be merged with the root templateOptions. This allows you to define a different template for each action if you so choose.

i.e. actionOptions.templateOptions = {...}

You can now set any option from the root pattern options on actionOptions. This will be merged with the root options and allow for actions to use their own setting for width, height, position, or any other modal pattern options.

The docs have been updated as well as all instances of modals in the bundles.