From fdb253a97226cb1b103cc94d26feb19f9625c144 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Tue, 22 Oct 2013 14:24:09 +0200 Subject: [PATCH] Clear search term after switching buffer --- js/websockets.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/websockets.js b/js/websockets.js index 187fbfd..4f589bb 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -356,6 +356,9 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', */ connection.sendCoreCommand('/buffer ' + ab.fullName); } + + // Clear search term on buffer change + $scope.search = ''; }); $rootScope.$on('notificationChanged', function() { var notifications = _.reduce(models.model.buffers, function(memo, num) { return (memo||0) + num.notification;});