summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-18 09:59:47 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-18 10:07:16 +0100
commitf65176564fad5750441e73a158e95a61eccfb669 (patch)
tree4a70b21fb5c872dafe3b5a11197561deca3e6e36
parentDisabled image upload UIs (diff)
downloadsynapse-f65176564fad5750441e73a158e95a61eccfb669.tar.xz
webclient: Tweak namespace of auto-complete directive. ng- should really only be used for official ng directives.
-rw-r--r--webclient/room/room-controller.js2
-rw-r--r--webclient/room/room.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index 5ea01d7641..b859f3d7e8 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -16,7 +16,7 @@ limitations under the License.
 
 angular.module('RoomController', ['ngSanitize'])
 
-.directive('ngAutoComplete', ['$timeout', function ($timeout) {
+.directive('autoComplete', ['$timeout', function ($timeout) {
     return function (scope, element, attrs) {
         element.bind("keydown keypress", function (event) {
             // console.log("event: " + event.which);
diff --git a/webclient/room/room.html b/webclient/room/room.html
index eba0881880..106a9dfd15 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -59,7 +59,7 @@
                         {{ state.user_id }} 
                     </td>
                     <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 width="1">
                         <button ng-click="send()">Send</button>