From a627c699440c71af98d1150620a6cd4886633f3c Mon Sep 17 00:00:00 2001 From: csarven Date: Wed, 26 Nov 2008 13:23:17 -0500 Subject: [PATCH] Dec/Increment user's number of Subscribers in Portfolio Un/Subscribe event. darcs-hash:20081126182317-eefa4-837600d917ec3fbe4c806fb2c5fad2daff0713cb.gz --- js/util.js | 2 ++ 1 file changed, 2 insertions(+) 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); } }; -- 2.39.5