summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-08 17:16:10 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-08 17:16:10 -0400
commit04f87895ba704265e7ba2a89cb8664105d68512b (patch)
treec5a4879435fa9603cbe44d8ec5ff611a1738581b /js/util.js
parent5d3cd4feff1bf5e1b67c50062bfd56df8bd06ab1 (diff)
make favorites form use Ajax
darcs-hash:20080908211610-84dde-8a7819ee8733cf73a778c2448c93974e2adecca7.gz
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js8
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) {