Skip to content

Commit 05cdeda

Browse files
author
Jason White
committed
minor changes from this AM
1 parent b18d320 commit 05cdeda

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/main/webapp/js/goatConstants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ var goatConstants = {
1919
solutionService:'service/solution.mvc',
2020
lessonPlanService:'service/lessonplan.mvc',
2121
menuService: 'service/lessonmenu.mvc',
22-
paramService: 'service/parms.mvc', //this is a stub .. need to discuss this
2322
// literals
2423
notFound: 'Could not find'
2524
};

src/main/webapp/js/goatControllers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ goat.controller('goatLessonMenu', function($scope, $http, $modal, $log, $templat
2929
//render lesson title
3030
$('#lessonTitle').text(goat.utils.extractLessonTitle($(reply)));
3131
// adjust menu to lessonContent size if necssary
32+
//@TODO: this is still clunky ... needs some TLC
3233
if ($('div.panel-body').height() > 400) {
3334
$('#leftside-navigation').height($(window).height());
3435
}

src/main/webapp/js/goatLesson.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ goat.lesson = {
3333
scope.hints = resp;
3434
if (scope.hints.length > 0) {
3535
goat.utils.displayButton('showHintsBtn',true);
36+
} else {
37+
goat.utils.displayButton('showHintsBtn',false);
3638
}
3739
return scope;
3840
},

src/main/webapp/js/goatUtil.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ goat.utils = {
4646
$('.lessonHelp').hide();
4747
$('#lesson_source').html("<pre>"+goat.lesson.lessonInfo.source+"</pre>");
4848
$('#lesson_source_row').show();
49+
goat.utils.scrollToHelp();
4950
},
5051
showLessonSolution: function() {
5152
$('.lessonHelp').hide();

0 commit comments

Comments
 (0)