thegooglecodearchive / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
Other
0 stars 0 forks source link

Collapse javascript not bound to dynamically-added stacked inlines. sections of stacked inlines #388

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which DJANGO-VERSION are you using?

Which GRAPPELLI-VERSION are you using?

Which BROWSER (including the version) are you using?

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please provide any additional information below.

Original issue reported on code.google.com by Stephen....@gmail.com on 16 Jul 2011 at 6:59

GoogleCodeExporter commented 9 years ago
... Sorry, accidentally bumped the enter key.
Django 1.3, grappelli r1452. Firefox 5.

Steps:
1. Make a stacked inline with nested collapsible field groups. i.e {'fields': 
('x', 'y', 'z'), 'classes': ('collapse', 'open')}
2. Click the "Add another Foo" button to dynamically add a new form.

Any forms which existed on page load will have the collapse/expand javascript 
bound to the click event on the h4s for the collapsible field groups; however, 
the event will not be bound to the h4s for the newly-added form. This is 
primarily an issue for field groups that start closed.

Original comment by Stephen....@gmail.com on 16 Jul 2011 at 7:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1457.

Original comment by sehmaschine on 17 Jul 2011 at 3:17