Gauravwagh / django-grappelli

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

Javascript set wrong class if we set 'collapse closed' and rise error in some field. #319

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Set class "collapse closed" in fieldsets
2.Try to raise error in some admin fields, eg. try to save empty fields with 
option blank=False in model
3.

What is the expected output? What do you see instead?
If we raise error in some admin field, javascript should recognize class 
'collapse closed' and remove it, or replace it with 'collapse closed open'. But 
now javascript remove all class, so box displays not correctly.
In code is possibility to set options, but I don't know how. 

What version of the product are you using? On what operating system?
current

Please provide any additional information below.
Set some default close/open css class or add description in documentation how 
to set that 'options' argument. I hope my code will help.

Original issue reported on code.google.com by lukaszga...@gmail.com on 18 Dec 2010 at 9:26

Attachments:

GoogleCodeExporter commented 9 years ago
works for me with both fieldsets and inlines. please reopen this issue if you 
think it still exists.

Original comment by sehmaschine on 19 Dec 2010 at 5:22