mirror of https://github.com/django/django.git
Fixed #4556 -- Stylistic changes to [5500]. Thanks, glin@seznam.cz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
50a3cea8b6
commit
92ee770773
|
@ -31,10 +31,11 @@ function showAddAnotherPopup(triggeringLink) {
|
||||||
var name = triggeringLink.id.replace(/^add_/, '');
|
var name = triggeringLink.id.replace(/^add_/, '');
|
||||||
name = name.replace(/\./g, '___');
|
name = name.replace(/\./g, '___');
|
||||||
href = triggeringLink.href
|
href = triggeringLink.href
|
||||||
if (href.indexOf('?') == -1)
|
if (href.indexOf('?') == -1) {
|
||||||
href += '?_popup=1';
|
href += '?_popup=1';
|
||||||
else
|
} else {
|
||||||
href += '&_popup=1';
|
href += '&_popup=1';
|
||||||
|
}
|
||||||
var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
|
var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
|
||||||
win.focus();
|
win.focus();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue