Merge pull request #459 from ailin-nemui/bufferlist-focus-ex

Fix a $apply-exception in inputbar/bufferFilter.focus
This commit is contained in:
Lorenz Hübschle-Schneider 2014-09-21 22:23:20 +02:00
commit b89a17032d

View file

@ -243,7 +243,9 @@ weechat.directive('inputBar', function() {
if (!$scope.$parent.isSidebarVisible()) { if (!$scope.$parent.isSidebarVisible()) {
$scope.$parent.showSidebar(); $scope.$parent.showSidebar();
} }
document.getElementById('bufferFilter').focus(); setTimeout(function() {
document.getElementById('bufferFilter').focus();
});
return true; return true;
} }