Fixed #348 -- Fixed bug in admin JavaScript filter interface. Thanks for the patch, Gary Wilson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
132605d889
commit
70740d6eca
|
@ -80,9 +80,11 @@ var SelectBox = {
|
||||||
var to_box = document.getElementById(to);
|
var to_box = document.getElementById(to);
|
||||||
var option;
|
var option;
|
||||||
for (var i = 0; (option = from_box.options[i]); i++) {
|
for (var i = 0; (option = from_box.options[i]); i++) {
|
||||||
|
if (SelectBox.cache_contains(from, option.value)) {
|
||||||
SelectBox.add_to_cache(to, {value: option.value, text: option.text, displayed: 1});
|
SelectBox.add_to_cache(to, {value: option.value, text: option.text, displayed: 1});
|
||||||
SelectBox.delete_from_cache(from, option.value);
|
SelectBox.delete_from_cache(from, option.value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
SelectBox.redisplay(from);
|
SelectBox.redisplay(from);
|
||||||
SelectBox.redisplay(to);
|
SelectBox.redisplay(to);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue