Clear search term after switching buffer
This commit is contained in:
parent
caf3085594
commit
fdb253a972
1 changed files with 3 additions and 0 deletions
|
@ -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;});
|
||||||
|
|
Loading…
Reference in a new issue