Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 92ee77077300529fded493aa34a64c8516abca18 1 parent 50a3cea
@malcolmt malcolmt authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 django/contrib/admin/media/js/admin/RelatedObjectLookups.js
View
9 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;
Please sign in to comment.
Something went wrong with that request. Please try again.