Merge pull request #459 from ailin-nemui/bufferlist-focus-ex
Fix a $apply-exception in inputbar/bufferFilter.focus
This commit is contained in:
commit
b89a17032d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue