summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-18 11:01:20 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-18 11:01:20 -0400
commit0f787d649b843e5081f6992be46e61531882a204 (patch)
tree058971ae9600eba0a5540717854ac05eb8db02f8
parent935e9b85093a99aa8bd4670fbde4b3cc335d941b (diff)
replace -> replaceWith
darcs-hash:20080918150120-5ed1f-aaa30e8817bc1653fb5c28a6cd7697f960f9ef2c.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 9112f2bec..636573625 100644
--- a/js/util.js
+++ b/js/util.js
@@ -59,14 +59,14 @@ $(document).ready(function(){
success: function(xml) {
var new_form = $('form.disfavor', xml).get(0);
var id = new_form.id.replace('disfavor', 'favor');
- $('form#'+id).replace(new_form);
+ $('form#'+id).replaceWith(new_form);
}};
var disoptions = {dataType: 'xml',
success: function(xml) {
var new_form = $('form.favor', xml).get(0);
var id = new_form.id.replace('favor', 'disfavor');
- $('form#'+id).replace(new_form);
+ $('form#'+id).replaceWith(new_form);
}};
function addAjaxHidden() {