minor changes from this AM
This commit is contained in:
parent
b18d320bd1
commit
05cdeda1ba
@ -19,7 +19,6 @@ var goatConstants = {
|
|||||||
solutionService:'service/solution.mvc',
|
solutionService:'service/solution.mvc',
|
||||||
lessonPlanService:'service/lessonplan.mvc',
|
lessonPlanService:'service/lessonplan.mvc',
|
||||||
menuService: 'service/lessonmenu.mvc',
|
menuService: 'service/lessonmenu.mvc',
|
||||||
paramService: 'service/parms.mvc', //this is a stub .. need to discuss this
|
|
||||||
// literals
|
// literals
|
||||||
notFound: 'Could not find'
|
notFound: 'Could not find'
|
||||||
};
|
};
|
||||||
|
@ -29,6 +29,7 @@ goat.controller('goatLessonMenu', function($scope, $http, $modal, $log, $templat
|
|||||||
//render lesson title
|
//render lesson title
|
||||||
$('#lessonTitle').text(goat.utils.extractLessonTitle($(reply)));
|
$('#lessonTitle').text(goat.utils.extractLessonTitle($(reply)));
|
||||||
// adjust menu to lessonContent size if necssary
|
// adjust menu to lessonContent size if necssary
|
||||||
|
//@TODO: this is still clunky ... needs some TLC
|
||||||
if ($('div.panel-body').height() > 400) {
|
if ($('div.panel-body').height() > 400) {
|
||||||
$('#leftside-navigation').height($(window).height());
|
$('#leftside-navigation').height($(window).height());
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,8 @@ goat.lesson = {
|
|||||||
scope.hints = resp;
|
scope.hints = resp;
|
||||||
if (scope.hints.length > 0) {
|
if (scope.hints.length > 0) {
|
||||||
goat.utils.displayButton('showHintsBtn',true);
|
goat.utils.displayButton('showHintsBtn',true);
|
||||||
|
} else {
|
||||||
|
goat.utils.displayButton('showHintsBtn',false);
|
||||||
}
|
}
|
||||||
return scope;
|
return scope;
|
||||||
},
|
},
|
||||||
|
@ -46,6 +46,7 @@ goat.utils = {
|
|||||||
$('.lessonHelp').hide();
|
$('.lessonHelp').hide();
|
||||||
$('#lesson_source').html("<pre>"+goat.lesson.lessonInfo.source+"</pre>");
|
$('#lesson_source').html("<pre>"+goat.lesson.lessonInfo.source+"</pre>");
|
||||||
$('#lesson_source_row').show();
|
$('#lesson_source_row').show();
|
||||||
|
goat.utils.scrollToHelp();
|
||||||
},
|
},
|
||||||
showLessonSolution: function() {
|
showLessonSolution: function() {
|
||||||
$('.lessonHelp').hide();
|
$('.lessonHelp').hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user