ActiveBufferChanged signal passes buffer object

with-route-provider
David Cormier 12 years ago
parent 5e8f5db723
commit 0a74acf170
  1. 3
      js/glowingbear.js
  2. 2
      js/models.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();

@ -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;
};

Loading…
Cancel
Save