diff options
author | Sarven Capadisli <csarven@status.net> | 2009-11-13 20:56:55 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-11-13 20:56:55 +0000 |
commit | dedacbe66ba3b7f0ff1089378af12e6cc7411a2a (patch) | |
tree | b9d5a88a2333e37645c76ae019887d8ba4e44afa | |
parent | 9a2a01c51e1fd9a344680087014329df00e74b5b (diff) |
Separated NoticeFavor and calling it from FormNoticeXHR success
-rw-r--r-- | js/util.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js index 9bdc48507..c59c63910 100644 --- a/js/util.js +++ b/js/util.js @@ -228,6 +228,7 @@ var SN = { // StatusNet $('#'+notice.id).fadeIn(2500); SN.U.NoticeAttachments(); SN.U.NoticeReply(); + SN.U.NoticeFavor(); } } $('#'+form_id+' #'+SN.C.S.NoticeDataText).val(''); @@ -276,6 +277,11 @@ var SN = { // StatusNet return true; }, + NoticeFavor: function() { + $('.form_favor').each(function() { SN.U.FormXHR($(this)); }); + $('.form_disfavor').each(function() { SN.U.FormXHR($(this)); }); + }, + NoticeAttachments: function() { $.fn.jOverlay.options = { method : 'GET', @@ -386,8 +392,7 @@ var SN = { // StatusNet Notices: function() { if ($('body.user_in').length > 0) { - $('.form_favor').each(function() { SN.U.FormXHR($(this)); }); - $('.form_disfavor').each(function() { SN.U.FormXHR($(this)); }); + SN.U.NoticeFavor(); SN.U.NoticeReply(); } |