summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-18 10:55:45 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-18 10:55:45 -0400
commit935e9b85093a99aa8bd4670fbde4b3cc335d941b (patch)
treea593e69d458b17ba8ad0af91ebaf5c899afbd8ba
parent4520daac3e2e58c6bd0bdc93cef964ee22be9f37 (diff)
get the zeroth form in the returned array
darcs-hash:20080918145545-5ed1f-11100b4bd89ef289f31bbfd37a58c4395469f808.gz
-rw-r--r--js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js
index 0f2e365c3..9112f2bec 100644
--- a/js/util.js
+++ b/js/util.js
@@ -57,14 +57,14 @@ $(document).ready(function(){
var favoptions = {dataType: 'xml',
success: function(xml) {
- var new_form = $('form.disfavor', xml);
+ var new_form = $('form.disfavor', xml).get(0);
var id = new_form.id.replace('disfavor', 'favor');
$('form#'+id).replace(new_form);
}};
var disoptions = {dataType: 'xml',
success: function(xml) {
- var new_form = $('form.favor', xml);
+ var new_form = $('form.favor', xml).get(0);
var id = new_form.id.replace('favor', 'disfavor');
$('form#'+id).replace(new_form);
}};