summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/util.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 9c8bab78d..5b1ecc007 100644
--- a/js/util.js
+++ b/js/util.js
@@ -60,6 +60,9 @@ $(document).ready(function(){
var new_form = $('form.disfavor', xml).get(0);
var dis = new_form.id;
var fav = dis.replace('disfavor', 'favor');
+ if (document.importNode) {
+ new_form = document.importNode(new_form);
+ }
$('form#'+fav).replaceWith(new_form);
$('form#'+dis).ajaxForm(disoptions).each(addAjaxHidden);
}};
@@ -69,6 +72,9 @@ $(document).ready(function(){
var new_form = $('form.favor', xml).get(0);
var fav = new_form.id;
var dis = fav.replace('favor', 'disfavor');
+ if (document.importNode) {
+ new_form = document.importNode(new_form);
+ }
$('form#'+dis).replaceWith(new_form);
$('form#'+fav).ajaxForm(favoptions).each(addAjaxHidden); ;
}};