summaryrefslogtreecommitdiffstats
path: root/templates/patchwork
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-08-21 10:06:33 +0800
committerJeremy Kerr <jk@ozlabs.org>2008-08-21 10:06:33 +0800
commit9ea0a244625b8b21a6bae53bf33fae5a2cebebc1 (patch)
tree64324aebd02413eb467b1334a6c0fffcc62a67c5 /templates/patchwork
parenteb4699b9da500656cb5c730c214d8f0a38ea3c0e (diff)
downloadpatchwork-9ea0a244625b8b21a6bae53bf33fae5a2cebebc1.tar.bz2
patchwork-9ea0a244625b8b21a6bae53bf33fae5a2cebebc1.tar.xz
Make submitter filter AJAX work in Firefox
.options can't be set in Firefox. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/patchwork')
-rw-r--r--templates/patchwork/filters.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/patchwork/filters.html b/templates/patchwork/filters.html
index ffecfb2..ff4339e 100644
--- a/templates/patchwork/filters.html
+++ b/templates/patchwork/filters.html
@@ -99,8 +99,6 @@ function submitter_complete_response()
return;
}
- submitter_select.options = [];
-
for (i = 0; i < completions.length; i++) {
name = completions[i]['fields']['name'];
if (name) {
@@ -112,6 +110,12 @@ function submitter_complete_response()
o = new Option(name, completions[i]['pk']);
submitter_select.options[i] = o;
}
+
+ /* remove remaining options */
+ for (; i < submitter_select.length; i++) {
+ submitter_select.options[i] = null;
+ }
+
submitter_select.disabled = false;
req = null;
}