summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-08 17:31:23 -0500
committerEvan Prodromou <evan@status.net>2009-12-08 17:31:23 -0500
commit41cbb90faeabc0a6002b41d40d392f45a59a7aba (patch)
treec4f21de0111e3ad39769c71fa29f1ebb383304f0 /js/util.js
parent48a93810abe5fd5098ef4f91e2b9d5991e217748 (diff)
add (ugly) form to forward notices
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js
index ed6a781f7..67df73507 100644
--- a/js/util.js
+++ b/js/util.js
@@ -208,7 +208,7 @@ var SN = { // StatusNet
$('#'+form_id+' .form_response').remove();
var result;
if ($('#'+SN.C.S.Error, data).length > 0) {
- result = document._importNode($('p', data)[0], true);
+ result = document._importNode($('p', data)[0], true);
result = result.textContent || result.innerHTML;
form.append('<p class="form_response error">'+result+'</p>');
}
@@ -306,8 +306,12 @@ var SN = { // StatusNet
$('.form_disfavor').each(function() { SN.U.FormXHR($(this)); });
},
+ NoticeForward: function() {
+ $('.form_forward').each(function() { SN.U.FormXHR($(this)); });
+ },
+
NoticeAttachments: function() {
- $('.notice a.attachment').each(function() {
+ $('.notice a.attachment').each(function() {
SN.U.NoticeWithAttachment($(this).closest('.notice'));
});
},
@@ -439,7 +443,7 @@ var SN = { // StatusNet
Notices: function() {
if ($('body.user_in').length > 0) {
SN.U.NoticeFavor();
-
+ SN.U.NoticeForward();
SN.U.NoticeReply();
}