diff --git a/js/glowingbear.js b/js/glowingbear.js index 79561da..506e7c3 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -536,7 +536,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $scope.isinstalled = false; } - $rootScope.$on('activeBufferChanged', function() { + $rootScope.$on('activeBufferChanged', function(signal, + activeBuffer) { $rootScope.scrollWithBuffer(true); var ab = models.getActiveBuffer(); diff --git a/js/models.js b/js/models.js index 8c3cb38..063c98e 100644 --- a/js/models.js +++ b/js/models.js @@ -405,7 +405,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter) activeBuffer.unread = 0; activeBuffer.notification = 0; - $rootScope.$emit('activeBufferChanged'); + $rootScope.$emit('activeBufferChanged', activeBuffer); $rootScope.$emit('notificationChanged'); return true; };