From 92ee77077300529fded493aa34a64c8516abca18 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 13 Jul 2007 14:40:39 +0000 Subject: [PATCH] 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 --- .../contrib/admin/media/js/admin/RelatedObjectLookups.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/django/contrib/admin/media/js/admin/RelatedObjectLookups.js b/django/contrib/admin/media/js/admin/RelatedObjectLookups.js index e5e05a7e32..36ae21411d 100644 --- a/django/contrib/admin/media/js/admin/RelatedObjectLookups.js +++ b/django/contrib/admin/media/js/admin/RelatedObjectLookups.js @@ -31,10 +31,11 @@ function showAddAnotherPopup(triggeringLink) { var name = triggeringLink.id.replace(/^add_/, ''); name = name.replace(/\./g, '___'); href = triggeringLink.href - if (href.indexOf('?') == -1) - href += '?_popup=1'; - else - href += '&_popup=1'; + if (href.indexOf('?') == -1) { + href += '?_popup=1'; + } else { + href += '&_popup=1'; + } var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes'); win.focus(); return false;