CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

fix(forms): Rendering forms #115

Closed alexbor closed 8 years ago

alexbor commented 8 years ago

Was more form issues, forms that get loaded in won't render.

Fix: On page load, "iris.forms.renderForm" isn't a function, so nothing will happen. But on page load, all forms get rendered and their callback methods will run.

After page load, iris.forms.renderForm(formId) will exist, all new loaded forms will run this method to render.

iris.forms frontend keeps a cache of rendered forms so will not render the same form twice.

Signed-off-by: Alex Bor alexhbor@gmail.com