mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
webclient: Tweak namespace of auto-complete directive. ng- should really only be used for official ng directives.
This commit is contained in:
parent
71584930cb
commit
f65176564f
@ -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);
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user