diff -r b632913aebd1 django/contrib/admin/media/js/SelectFilter2.js
a
|
b
|
|
26 | 26 | |
27 | 27 | // Remove <p class="info">, because it just gets in the way. |
28 | 28 | var ps = from_box.parentNode.getElementsByTagName('p'); |
| 29 | var removed_ps = []; |
29 | 30 | for (var i=0; i<ps.length; i++) { |
30 | | from_box.parentNode.removeChild(ps[i]); |
| 31 | removed_ps.push(from_box.parentNode.removeChild(ps[i])); |
31 | 32 | } |
32 | 33 | |
33 | 34 | // <div class="selector"> or <div class="selector stacked"> |
… |
… |
|
80 | 81 | SelectBox.init(field_id + '_to'); |
81 | 82 | // Move selected from_box options to to_box |
82 | 83 | SelectBox.move(field_id + '_from', field_id + '_to'); |
| 84 | // Reinsert all the previously removed paragraphs |
| 85 | for (var i in removed_ps) { |
| 86 | selector_div.parentNode.appendChild(removed_ps[i]); |
| 87 | } |
83 | 88 | }, |
84 | 89 | filter_key_up: function(event, field_id) { |
85 | 90 | from = document.getElementById(field_id + '_from'); |