diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-08-17 02:58:01 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-08-17 02:58:01 +0100 |
commit | a56a346343fe39c61adb9a2169ee38a72b2d5a1b (patch) | |
tree | 7c4c58ec447696c0a69e31360a9326f72955f0f4 /webclient/room/room-controller.js | |
parent | - use css3 to make avatars always the right aspect ratio (diff) | |
download | synapse-a56a346343fe39c61adb9a2169ee38a72b2d5a1b.tar.xz |
dial down logging
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r-- | webclient/room/room-controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index a2032cf57c..304b06c1f1 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -19,10 +19,10 @@ angular.module('RoomController', ['ngSanitize']) .directive('ngAutoComplete', ['$timeout', function ($timeout) { return function (scope, element, attrs) { element.bind("keydown keypress", function (event) { - console.log("event: " + event.which); + // console.log("event: " + event.which); if (event.which === 9) { if (!scope.autoCompleting) { // cache our starting text - console.log("caching " + element[0].value); + // console.log("caching " + element[0].value); scope.autoCompleteOriginal = element[0].value; scope.autoCompleting = true; } @@ -41,7 +41,7 @@ angular.module('RoomController', ['ngSanitize']) var targetIndex = scope.autoCompleteIndex; var text = scope.autoCompleteOriginal; - console.log("targetIndex: " + targetIndex + ", text=" + text); + // console.log("targetIndex: " + targetIndex + ", text=" + text); // FIXME: use the correct regexp to recognise userIDs var search = /@?([a-zA-Z0-9_\-:\.]+)$/.exec(text); @@ -49,7 +49,7 @@ angular.module('RoomController', ['ngSanitize']) element[0].value = text; } else if (search && search[1]) { - console.log("search found: " + search); + // console.log("search found: " + search); var expansion; // FIXME: could do better than linear search here @@ -83,7 +83,7 @@ angular.module('RoomController', ['ngSanitize']) element[0].className = ""; } else { - console.log("wrapped!"); + // console.log("wrapped!"); element[0].className = "blink"; // XXX: slightly naughty to bypass angular $timeout(function() { element[0].className = ""; |