From ab328f909940a25666b1f53c591c30be7b2c4760 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Thu, 4 Dec 2014 11:16:19 +0100 Subject: [PATCH] Use onEnter directive. --- static/js/directives/roombar.js | 6 ------ static/partials/roombar.html | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/static/js/directives/roombar.js b/static/js/directives/roombar.js index e8b44347..7077266e 100644 --- a/static/js/directives/roombar.js +++ b/static/js/directives/roombar.js @@ -42,12 +42,6 @@ define(['underscore', 'angular', 'text!partials/roombar.html'], function(_, angu } }; - $scope.hitEnter = function(evt) { - if (angular.equals(evt.keyCode, 13)) { - $scope.save(); - } - }; - $scope.exit = function() { $scope.newRoomName = ""; $scope.save(); diff --git a/static/partials/roombar.html b/static/partials/roombar.html index ca8e94b9..5c7e66d8 100644 --- a/static/partials/roombar.html +++ b/static/partials/roombar.html @@ -4,7 +4,7 @@
- +