#6903: Go back to old change_list view after hitting save
---------------------------------------------+------------------------------
          Reporter:  jarrow                  |         Owner:  ramiro
            Status:  new                     |     Milestone:  1.2   
         Component:  django.contrib.admin    |       Version:  SVN   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  1     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by marcob):

 I use a fancy [http://www.djangosnippets.org/snippets/431/ snippet] that
 open related object in change mode (using few lines of jQuery), so I would
 like to close the window after saving if in popup mode.
 A call to a dismissChangePopup (similar to dismissAddAnotherPopup) would
 be great, but for now I add this to response_change function after msg:
 {{{
         # Close if editing in a popup
         if request.POST.has_key("_popup"):
             return HttpResponse('<script
 type="text/javascript">window.close();</script>')
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6903#comment:30>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to