]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
second argument to importNode
authorEvan Prodromou <evan@prodromou.name>
Fri, 14 Nov 2008 19:47:27 +0000 (14:47 -0500)
committerEvan Prodromou <evan@prodromou.name>
Fri, 14 Nov 2008 19:47:27 +0000 (14:47 -0500)
darcs-hash:20081114194727-84dde-8dba6a82efe1deafc77e07f17685cf2cd0f8eeb2.gz

js/util.js

index 5b1ecc007b72fde22e4d87675d847c0729430caa..111beef250c0612dfa5bacb7c8141643d9b8f7cb 100644 (file)
@@ -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);                    ;