diff --git a/django/contrib/admin/media/js/admin/RelatedObjectLookups.js b/django/contrib/admin/media/js/admin/RelatedObjectLookups.js
index ca578cc..5e2b4b5 100644
a
|
b
|
function showRelatedObjectLookupPopup(triggeringLink) {
|
17 | 17 | name = name.replace(/\./g, '___'); |
18 | 18 | var href; |
19 | 19 | if (triggeringLink.href.search(/\?/) >= 0) { |
20 | | href = triggeringLink.href + '&pop=1'; |
| 20 | href = triggeringLink.href + '&_popup=1'; |
21 | 21 | } else { |
22 | | href = triggeringLink.href + '?pop=1'; |
| 22 | href = triggeringLink.href + '?_popup=1'; |
23 | 23 | } |
24 | 24 | var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes'); |
25 | 25 | win.focus(); |
diff --git a/django/contrib/admin/templates/admin/search_form.html b/django/contrib/admin/templates/admin/search_form.html
index b232aa9..26dc381 100644
a
|
b
|
|
7 | 7 | <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" id="searchbar" /> |
8 | 8 | <input type="submit" value="{% trans 'Go' %}" /> |
9 | 9 | {% if show_result_count %} |
10 | | <span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span> |
| 10 | <span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}_popup=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span> |
11 | 11 | {% endif %} |
12 | 12 | {% for pair in cl.params.items %} |
13 | 13 | {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %} |
diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py
index 116d9d4..3b3bdd4 100644
a
|
b
|
ORDER_VAR = 'o'
|
24 | 24 | ORDER_TYPE_VAR = 'ot' |
25 | 25 | PAGE_VAR = 'p' |
26 | 26 | SEARCH_VAR = 'q' |
27 | | IS_POPUP_VAR = 'pop' |
| 27 | IS_POPUP_VAR = '_popup' |
28 | 28 | ERROR_FLAG = 'e' |
29 | 29 | |
30 | 30 | # Text to display within change-list table cells if the value is blank. |