Re: Unexpected behavior in admin views for _popup=1

2014-06-26 Thread Ivan Kharlamov
On 06/26/2014 06:00 PM, e.generalov wrote: > Hello! > > In my AngularJs application I want to reuse some django admin forms (to > "add", "edit" and "delete" orders) > but show them in the iframe instead of popup windows. > > In order to display "add" form in iframe I create a template: > >

Re: Unexpected behavior in admin views for _popup=1

2014-06-26 Thread Tim Graham
The Django admin doesn't generate links to render the change or delete pages in pop-ups which is the reason this functionality wasn't implemented. While it seems like a reasonable request, I'm hesitant to add support for them because if such pages aren't in the normal admin workflow they will p

Unexpected behavior in admin views for _popup=1

2014-06-26 Thread e.generalov
Hello! In my AngularJs application I want to reuse some django admin forms (to "add", "edit" and "delete" orders) but show them in the iframe instead of popup windows. In order to display "add" form in iframe I create a template: window.dismissAddAnotherPopup = function customDismissAd