Remove unnecessary uses of jQuery and dead code
Native code is faster anyways ;)
This commit is contained in:
parent
1d2e5f1d0b
commit
d363121556
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue