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:
Malcolm Tredinnick 2007-07-13 14:40:39 +00:00
parent 50a3cea8b6
commit 92ee770773
1 changed files with 5 additions and 4 deletions

View File

@ -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;