Commit edf69c107423cb2f4a5926c9e4f45e98b8fcb5a6
1 parent
86e26c6eb6
Exists in
master
and in
1 other branch
actually disable submit button if not enough characters
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
scripts/FeedController.js
View file @
edf69c1
... | ... | @@ -150,8 +150,10 @@ |
150 | 150 | $('#new-card-input').on('keydown', function(e) { |
151 | 151 | if (e.which == 13) { |
152 | 152 | e.preventDefault(); |
153 | - $scope.pushCard(); | |
154 | - listenForC = true; | |
153 | + if ($scope.submit_enabled) { | |
154 | + $scope.pushCard(); | |
155 | + listenForC = true; | |
156 | + } | |
155 | 157 | return false; |
156 | 158 | } else { |
157 | 159 |