Index: django/views/admin/main.py
===================================================================
--- django/views/admin/main.py (revision 714)
+++ django/views/admin/main.py (working copy)
@@ -523,7 +523,7 @@
if not opts.admin.save_as or add:
t.append('{%% if not is_popup %%}{%% endif %%}' % \
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
- t.append('' % \
+ t.append('{%% if not is_popup %%}{%% endif %%}' % \
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
t.append('' % \
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))