From: csarven Date: Wed, 26 Nov 2008 18:23:17 +0000 (-0500) Subject: Dec/Increment user's number of Subscribers in Portfolio Un/Subscribe event. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a627c699440c71af98d1150620a6cd4886633f3c;p=quix0rs-gnu-social.git Dec/Increment user's number of Subscribers in Portfolio Un/Subscribe event. darcs-hash:20081126182317-eefa4-837600d917ec3fbe4c806fb2c5fad2daff0713cb.gz --- diff --git a/js/util.js b/js/util.js index e07788c7bf..6012188441 100644 --- a/js/util.js +++ b/js/util.js @@ -99,6 +99,7 @@ $(document).ready(function(){ var form_subscribe_id = form_unsubscribe_id.replace('unsubscribe', 'subscribe'); $("form#"+form_subscribe_id).replaceWith(form_unsubscribe); $("form#"+form_unsubscribe_id).ajaxForm(UnSubscribe).each(addAjaxHidden); + $("dd.subscribers").text(parseInt($("dd.subscribers").text())+1); } }; @@ -110,6 +111,7 @@ $(document).ready(function(){ $("form#"+form_subscribe_id).ajaxForm(Subscribe).each(addAjaxHidden); $("#profile_send_a_new_message").remove(); $("#profile_nudge").remove(); + $("dd.subscribers").text(parseInt($("dd.subscribers").text())-1); } };