webclient: Tweak namespace of auto-complete directive. ng- should really only be used for official ng directives.

This commit is contained in:
Kegan Dougal 2014-08-18 09:59:47 +01:00
parent 71584930cb
commit f65176564f
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ limitations under the License.
angular.module('RoomController', ['ngSanitize']) angular.module('RoomController', ['ngSanitize'])
.directive('ngAutoComplete', ['$timeout', function ($timeout) { .directive('autoComplete', ['$timeout', function ($timeout) {
return function (scope, element, attrs) { return function (scope, element, attrs) {
element.bind("keydown keypress", function (event) { element.bind("keydown keypress", function (event) {
// console.log("event: " + event.which); // console.log("event: " + event.which);

View File

@ -59,7 +59,7 @@
{{ state.user_id }} {{ state.user_id }}
</td> </td>
<td width="*" style="min-width: 100px"> <td width="*" style="min-width: 100px">
<input id="mainInput" ng-model="textInput" ng-enter="send()" ng-focus="true" ng-auto-complete/> <input id="mainInput" ng-model="textInput" ng-enter="send()" ng-focus="true" auto-complete/>
</td> </td>
<td width="1"> <td width="1">
<button ng-click="send()">Send</button> <button ng-click="send()">Send</button>