]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
have to add the ajaxHidden thing, too
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 15:07:53 +0000 (11:07 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 15:07:53 +0000 (11:07 -0400)
darcs-hash:20080918150753-5ed1f-ffb32e350a24e7a425f5ce2b46b3248f22523d2a.gz

js/util.js

index 98dce369481f84e33939b1d59a71bbc74fbe84d4..11fc6e68a75e8d82384b944ab5c6f46859755f28 100644 (file)
@@ -61,7 +61,7 @@ $(document).ready(function(){
                     var dis = new_form.id;
                     var fav = dis.replace('disfavor', 'favor');
                     $('form#'+fav).replaceWith(new_form);
-                    $('form#'+dis).ajaxForm(disoptions);
+                    $('form#'+dis).ajaxForm(disoptions).each(addAjaxHidden);
                }};
 
      var disoptions = {dataType: 'xml',
@@ -70,7 +70,7 @@ $(document).ready(function(){
                     var fav = new_form.id;
                     var dis = dis.replace('favor', 'disfavor');
                     $('form#'+dis).replaceWith(new_form);
-                    $('form#'+fav).ajaxForm(favoptions);
+                    $('form#'+fav).ajaxForm(favoptions).each(addAjaxHidden);                    ;
                }};
 
      function addAjaxHidden() {