Update publisher callback to use ContentUpdater
This commit is contained in:
parent
aa4fbfbe1a
commit
ffd96d989c
2 changed files with 2 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ javascripts:
|
|||
- public/javascripts/widgets/flashes.js
|
||||
- public/javascripts/view.js
|
||||
- public/javascripts/stream.js
|
||||
- public/javascripts/content-updater.js
|
||||
- public/javascripts/search.js
|
||||
mobile:
|
||||
- public/javascripts/vendor/jquery152.min.js
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ var Stream = {
|
|||
});
|
||||
|
||||
$(".new_status_message").live('ajax:success', function(data, json, xhr) {
|
||||
WebSocketReceiver.addPostToStream(json.post_id, json.html);
|
||||
ContentUpdater.addPostToStream(json.html);
|
||||
//collapse publisher
|
||||
Publisher.close();
|
||||
Publisher.clear();
|
||||
|
|
|
|||
Loading…
Reference in a new issue