diff --git a/js/glowingbear.js b/js/glowingbear.js index d4d83b9..5594461 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -703,7 +703,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $scope.search = ''; if (!$rootScope.isMobileUi()) { - $('#sendMessage').focus(); + document.getElementById('sendMessage').focus(); } }); @@ -1215,10 +1215,7 @@ weechat.directive('inputBar', function() { * Returns the input element */ $scope.getInputNode = function() { - return $element.find('#'+$scope.inputId)[0]; - }; - $scope.getForm = function() { - return $element.find('form')[0]; + return document.querySelector('textarea#' + $scope.inputId); }; $scope.completeNick = function() {