|
|
@ -995,6 +995,7 @@ weechat.directive('inputBar', function() { |
|
|
|
templateUrl: 'directives/input.html', |
|
|
|
templateUrl: 'directives/input.html', |
|
|
|
controller: function($rootScope, |
|
|
|
controller: function($rootScope, |
|
|
|
$scope, |
|
|
|
$scope, |
|
|
|
|
|
|
|
$element, |
|
|
|
connection, |
|
|
|
connection, |
|
|
|
models) { |
|
|
|
models) { |
|
|
|
|
|
|
|
|
|
|
@ -1005,6 +1006,13 @@ weechat.directive('inputBar', function() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
* Returns the input element |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
$scope.getInputNode = function() { |
|
|
|
|
|
|
|
return $element.find('input')[0]; |
|
|
|
|
|
|
|
}; |
|
|
|
$scope.completeNick = function() { |
|
|
|
$scope.completeNick = function() { |
|
|
|
// input DOM node
|
|
|
|
// input DOM node
|
|
|
|
var inputNode = document.getElementById('sendMessage'); |
|
|
|
var inputNode = document.getElementById('sendMessage'); |
|
|
|