diff --git a/scripts/HelpController.js b/scripts/HelpController.js index 9146d65..a38e5d4 100644 --- a/scripts/HelpController.js +++ b/scripts/HelpController.js @@ -1,7 +1,7 @@ angular.module('flashy.HelpController', ['ui.router']). - controller('HelpController', function ($scope, $state, $http, $timeout) { - $scope.toggleContent = function (event, index) { + controller('HelpController', function($scope, $state, $http, $timeout) { + $scope.toggleContent = function(event, index) { console.log(event, index); if ($('#content-' + index).hasClass('open')) { // let's close it @@ -14,7 +14,7 @@ angular.module('flashy.HelpController', ['ui.router']). // event.currentTarget }; - $scope.closeContent = function (event) { + $scope.closeContent = function(event) { }; @@ -48,7 +48,7 @@ angular.module('flashy.HelpController', ['ui.router']). }]; // Functions - $scope.toggleContent = function (event, index) { + $scope.toggleContent = function(event, index) { if ($('#content-' + index).hasClass('open')) { // let's close it // Note: 250 is duration (ms) of animation $('#content-' + index).slideUp(250).removeClass('open'); @@ -57,13 +57,13 @@ angular.module('flashy.HelpController', ['ui.router']). } }; - $scope.expandAllContent = function () { + $scope.expandAllContent = function() { for (var i = 0; i < $scope.entries.length; i++) { $('#content-' + i).slideDown(0).addClass('open'); } }; - $scope.collapseAllContent = function () { + $scope.collapseAllContent = function() { for (var i = 0; i < $scope.entries.length; i++) { $('#content-' + i).slideUp(0).removeClass('open'); } diff --git a/scripts/StudyController.js b/scripts/StudyController.js index 792150e..c01f50d 100644 --- a/scripts/StudyController.js +++ b/scripts/StudyController.js @@ -220,7 +220,6 @@ angular.module('flashy.StudyController', ['ui.router']). } if ($scope.inQuestionsModal && !$scope.hasBlanks) { if (keyed == 13) { // 'enter' keydown - console.log('the KEY'); $scope.fetchQuiz(); } } diff --git a/templates/study.html b/templates/study.html index 095e0af..6d346a2 100644 --- a/templates/study.html +++ b/templates/study.html @@ -91,7 +91,7 @@ -