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 5b1ecc007..111beef25 100644
--- a/js/util.js
+++ b/js/util.js
@@ -61,7 +61,7 @@ $(document).ready(function(){
var dis = new_form.id;
var fav = dis.replace('disfavor', 'favor');
if (document.importNode) {
- new_form = document.importNode(new_form);
+ new_form = document.importNode(new_form, true);
}
$('form#'+fav).replaceWith(new_form);
$('form#'+dis).ajaxForm(disoptions).each(addAjaxHidden);
@@ -73,7 +73,7 @@ $(document).ready(function(){
var fav = new_form.id;
var dis = fav.replace('favor', 'disfavor');
if (document.importNode) {
- new_form = document.importNode(new_form);
+ new_form = document.importNode(new_form, true);
}
$('form#'+dis).replaceWith(new_form);
$('form#'+fav).ajaxForm(favoptions).each(addAjaxHidden); ;