summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/util.js')
-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() {