Permalink
Browse files

XWIKI-7679: Separate Message Stream input from Activity Stream

- Using the more generic JS event name 'xwiki:activity:newActivity' for triggering the update of the ActivityStream
  • Loading branch information...
1 parent 3123113 commit 56f54131be0aa4f660956064c8b23cfdc0826bcc @Enygma2002 Enygma2002 committed May 28, 2012
@@ -117,7 +117,7 @@ XWiki.Activity = Class.create({
}
}.bind(this));
- document.observe('xwiki:messagestream:messageSent', function(event) {
+ document.observe('xwiki:activity:newActivity', function(event) {
// Update all activity streams to display the new message
$$('.activity').each(this.updateActivity.bind(this));
}.bind(this));
@@ -183,8 +183,8 @@ XWiki.MessageStream = Class.create({
msForm._notification.hide();
}
msForm._notification = new XWiki.widgets.Notification("$msg.get('xe.activity.messages.submit.success')", 'done');
-
- document.fire('xwiki:messagestream:messageSent', msForm);
+
+ document.fire('xwiki:activity:newActivity', msForm);
},
onFailure: function(response) {
var failureReason = '';

0 comments on commit 56f5413

Please sign in to comment.