Remove unnecessary uses of jQuery and dead code

Native code is faster anyways ;)
This commit is contained in:
Lorenz Hübschle-Schneider 2014-04-28 13:52:21 +01:00
parent 1d2e5f1d0b
commit d363121556
1 changed files with 2 additions and 5 deletions

View File

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