summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcsarven <csarven@controlyourself.ca>2008-11-26 13:23:17 -0500
committercsarven <csarven@controlyourself.ca>2008-11-26 13:23:17 -0500
commita627c699440c71af98d1150620a6cd4886633f3c (patch)
tree06b4e85f71317a1a77f56cb55722b4e93b0004fe
parent50450dab83ab9aff6e44c49f8ec47376869bc3ae (diff)
Dec/Increment user's number of Subscribers in Portfolio Un/Subscribe event.
darcs-hash:20081126182317-eefa4-837600d917ec3fbe4c806fb2c5fad2daff0713cb.gz
-rw-r--r--js/util.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index e07788c7b..601218844 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);
}
};