From 04f87895ba704265e7ba2a89cb8664105d68512b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 8 Sep 2008 17:16:10 -0400 Subject: make favorites form use Ajax darcs-hash:20080908211610-84dde-8a7819ee8733cf73a778c2448c93974e2adecca7.gz --- js/util.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js/util.js') 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) { -- cgit v1.2.3-54-g00ecf