]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Dec/Increment user's number of Subscribers in Portfolio Un/Subscribe event.
authorcsarven <csarven@controlyourself.ca>
Wed, 26 Nov 2008 18:23:17 +0000 (13:23 -0500)
committercsarven <csarven@controlyourself.ca>
Wed, 26 Nov 2008 18:23:17 +0000 (13:23 -0500)
darcs-hash:20081126182317-eefa4-837600d917ec3fbe4c806fb2c5fad2daff0713cb.gz

js/util.js

index e07788c7bf61c760db1090f9b1a6df85a0828fa8..601218844199ff6b6b682b963f8aa256770a3dd4 100644 (file)
@@ -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);
                                                                                           }
                                          };