Clear search term after switching buffer

This commit is contained in:
Tor Hveem 2013-10-22 14:24:09 +02:00
parent caf3085594
commit fdb253a972

View file

@ -356,6 +356,9 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
*/ */
connection.sendCoreCommand('/buffer ' + ab.fullName); connection.sendCoreCommand('/buffer ' + ab.fullName);
} }
// Clear search term on buffer change
$scope.search = '';
}); });
$rootScope.$on('notificationChanged', function() { $rootScope.$on('notificationChanged', function() {
var notifications = _.reduce(models.model.buffers, function(memo, num) { return (memo||0) + num.notification;}); var notifications = _.reduce(models.model.buffers, function(memo, num) { return (memo||0) + num.notification;});