diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-09-08 17:16:10 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-09-08 17:16:10 -0400 |
commit | 04f87895ba704265e7ba2a89cb8664105d68512b (patch) | |
tree | c5a4879435fa9603cbe44d8ec5ff611a1738581b /js/util.js | |
parent | 5d3cd4feff1bf5e1b67c50062bfd56df8bd06ab1 (diff) |
make favorites form use Ajax
darcs-hash:20080908211610-84dde-8a7819ee8733cf73a778c2448c93974e2adecca7.gz
Diffstat (limited to 'js/util.js')
-rw-r--r-- | js/util.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js index a444e9ea1..fb4b5abfa 100644 --- a/js/util.js +++ b/js/util.js @@ -52,6 +52,14 @@ $(document).ready(function(){ // set the focus $("#status_textarea").focus(); } + + var options = {dataType: 'xml', + success: function(xml) { + // replace the form with what's returned + }; + + $("form.favor").ajaxForm(options); + $("form.disfavor").ajaxForm(options); }); function doreply(nick) { |