summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorcsarven <csarven@controlyourself.ca>2008-11-15 21:27:35 -0500
committercsarven <csarven@controlyourself.ca>2008-11-15 21:27:35 -0500
commitf3572aec7f159231ca2b63be1d2c5466a3ff7208 (patch)
treebe568695ec260c8af1e0499f2823dbcb294bb888 /js
parent44602ae0ffb1dc3468d43381249f9a1618d88d1c (diff)
Nudge feature
darcs-hash:20081116022735-eefa4-366f6deb85942f859ebd532e477b57737bcafbf8.gz
Diffstat (limited to 'js')
-rw-r--r--js/util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 151c0d111..d0673b839 100644
--- a/js/util.js
+++ b/js/util.js
@@ -85,6 +85,11 @@ $(document).ready(function(){
$("form.disfavor").ajaxForm(disoptions);
$("form.favor").each(addAjaxHidden);
$("form.disfavor").each(addAjaxHidden);
+
+ $("#nudge").ajaxForm ({ dataType: 'xml',
+ success: function(xml) { $("#nudge").replaceWith(document._importNode($("#nudge_response", xml).get(0),true)); }
+ });
+ $("#nudge .submit").bind('click', function(e) { $(this).addClass("processing"); });
});
function doreply(nick,id) {