vky / iodocs

Interactive API documentation system
MIT License
5 stars 5 forks source link

Adding collections: Sub-collections that appear as a result of 'Add collection' cannot create additional objects. #23

Closed vky closed 11 years ago

vky commented 11 years ago

Job -> Put Schedule Job -> Schedule -> Specs -> Spec If 'Add collection' under Specs is clicked, the 'Add collection' for the new 'spec' collection inside of the new 'specs' collection will not work.

The click handler is not being added to the new 'Add collection' elements that are created after page load, regardless of the .on() function. Or maybe it is but it's being blocked on these created events by something?

vky commented 11 years ago

Having 'collection-original' as being the hard-coded deletion cases was what was preventing stuff from being added. Changing the to the class of the first row in the collection table body has seemingly resolved any remaining issues.