#28068: Allow customizing popup window for selecting related objects in django
admin
-------------------------------+--------------------------------------
Reporter: tonnzor | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by tonnzor):
It is the workaround I had to add via base.html (does not work well with
Firefox and not smooth):
{{{
#!javascript
function resize_for_popup() {
if(/[?&]_popup=1(&|$)/.test(location.href)) {
// In Firefox you may need to set (via about:config):
dom.disable_window_move_resize = false
var reference = window.opener || screen;
var width = parseInt(reference.outerWidth * 2 / 3);
var height = parseInt(reference.outerHeight * 2 / 3);
window.resizeTo(width, height);
}
}
resize_for_popup();
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28068#comment:1>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.66fd8bb8632a735762b299c08d8665e3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.