second argument to importNode

darcs-hash:20081114194727-84dde-8dba6a82efe1deafc77e07f17685cf2cd0f8eeb2.gz
This commit is contained in:
Evan Prodromou 2008-11-14 14:47:27 -05:00
parent 49bc274d7c
commit 6880084e6b

View 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); ;