ghost
3 years ago
8 changed files with 13 additions and 18 deletions
@ -1,13 +1,13 @@ |
|||||||
$(document).ready(function() { |
$(document).ready(function() { |
||||||
|
|
||||||
// Init modules
|
// Init modules
|
||||||
ModuleMenu.init('follow'); |
ModuleMenu.init('people'); |
||||||
ModuleFollowing.load('#moduleFollowing', true); |
ModuleFollowing.load('#moduleFollowing', true); |
||||||
ModuleFeed.load('#moduleFeed', true); |
ModuleFeed.load('#moduleFeed', true); |
||||||
|
|
||||||
// Event listeners
|
// Event listeners
|
||||||
$(document).on('ModuleFollowing.unFollow:success', function(/*event, response*/) { |
$(document).on('ModuleFollowing.unFollow:success', function(/*event, response*/) { |
||||||
ModuleMenu.init('follow'); |
ModuleMenu.init('people'); |
||||||
ModuleFollowing.load('#moduleFollowing', true); |
ModuleFollowing.load('#moduleFollowing', true); |
||||||
ModuleFeed.load('#moduleFeed', true); |
ModuleFeed.load('#moduleFeed', true); |
||||||
}); |
}); |
Loading…
Reference in new issue