From 05cdeda1ba034c84979f118b1fc9a21c3f3e205c Mon Sep 17 00:00:00 2001 From: Jason White Date: Wed, 3 Sep 2014 21:21:45 -0400 Subject: [PATCH] minor changes from this AM --- src/main/webapp/js/goatConstants.js | 1 - src/main/webapp/js/goatControllers.js | 1 + src/main/webapp/js/goatLesson.js | 2 ++ src/main/webapp/js/goatUtil.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/js/goatConstants.js b/src/main/webapp/js/goatConstants.js index 59b89625b..03f2e78b9 100644 --- a/src/main/webapp/js/goatConstants.js +++ b/src/main/webapp/js/goatConstants.js @@ -19,7 +19,6 @@ var goatConstants = { solutionService:'service/solution.mvc', lessonPlanService:'service/lessonplan.mvc', menuService: 'service/lessonmenu.mvc', - paramService: 'service/parms.mvc', //this is a stub .. need to discuss this // literals notFound: 'Could not find' }; diff --git a/src/main/webapp/js/goatControllers.js b/src/main/webapp/js/goatControllers.js index 8e7cae2f8..ab84128ee 100644 --- a/src/main/webapp/js/goatControllers.js +++ b/src/main/webapp/js/goatControllers.js @@ -29,6 +29,7 @@ goat.controller('goatLessonMenu', function($scope, $http, $modal, $log, $templat //render lesson title $('#lessonTitle').text(goat.utils.extractLessonTitle($(reply))); // adjust menu to lessonContent size if necssary + //@TODO: this is still clunky ... needs some TLC if ($('div.panel-body').height() > 400) { $('#leftside-navigation').height($(window).height()); } diff --git a/src/main/webapp/js/goatLesson.js b/src/main/webapp/js/goatLesson.js index 1e1d79022..e84a0b2f5 100644 --- a/src/main/webapp/js/goatLesson.js +++ b/src/main/webapp/js/goatLesson.js @@ -33,6 +33,8 @@ goat.lesson = { scope.hints = resp; if (scope.hints.length > 0) { goat.utils.displayButton('showHintsBtn',true); + } else { + goat.utils.displayButton('showHintsBtn',false); } return scope; }, diff --git a/src/main/webapp/js/goatUtil.js b/src/main/webapp/js/goatUtil.js index 22127e14e..c078a5e9a 100644 --- a/src/main/webapp/js/goatUtil.js +++ b/src/main/webapp/js/goatUtil.js @@ -46,6 +46,7 @@ goat.utils = { $('.lessonHelp').hide(); $('#lesson_source').html("
"+goat.lesson.lessonInfo.source+"
"); $('#lesson_source_row').show(); + goat.utils.scrollToHelp(); }, showLessonSolution: function() { $('.lessonHelp').hide();