kattunga / IWBootstrapFramework

Intraweb Bootstrap 3 Framework for Delphi
http://kattunga.github.io/IWBootstrapFramework
MIT License
98 stars 42 forks source link

OnClick (sync) events doesn't work when component is created at runtime via ajax #2

Closed kattunga closed 8 years ago

kattunga commented 9 years ago

OnClick (sync) events doesn't work when component is created at runtime.

This is because the javascript function that button calls when OnClick is triggered it's not created when component it's created at runtime via ajax.

We can solve this if we move the code of the javascript function inside the html tag of the component in the body.

But I think that nobody need to use sync on dynamically created components, so we will wait until somebody need it.

kattunga commented 8 years ago

Fixed in latest commit.