summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-08-17 02:58:01 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-08-17 02:58:01 +0100
commita56a346343fe39c61adb9a2169ee38a72b2d5a1b (patch)
tree7c4c58ec447696c0a69e31360a9326f72955f0f4
parent- use css3 to make avatars always the right aspect ratio (diff)
downloadsynapse-a56a346343fe39c61adb9a2169ee38a72b2d5a1b.tar.xz
dial down logging
-rw-r--r--webclient/room/room-controller.js10
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 = "";