Author: mtredinnick
Date: 2007-07-13 09:40:39 -0500 (Fri, 13 Jul 2007)
New Revision: 5689

Modified:
   django/trunk/django/contrib/admin/media/js/admin/RelatedObjectLookups.js
Log:
Fixed #4556 -- Stylistic changes to [5500]. Thanks, [EMAIL PROTECTED]


Modified: 
django/trunk/django/contrib/admin/media/js/admin/RelatedObjectLookups.js
===================================================================
--- django/trunk/django/contrib/admin/media/js/admin/RelatedObjectLookups.js    
2007-07-13 14:33:46 UTC (rev 5688)
+++ django/trunk/django/contrib/admin/media/js/admin/RelatedObjectLookups.js    
2007-07-13 14:40:39 UTC (rev 5689)
@@ -31,10 +31,11 @@
     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;


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to