Skip to content

Commit

Permalink
Hide/show hint box on every problem, incl perseus
Browse files Browse the repository at this point in the history
Auditors: benkomalo, eater
  • Loading branch information
sophiebits committed May 21, 2013
1 parent 799d63d commit 3cf2b69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions interface.js
Expand Up @@ -136,6 +136,7 @@ function newProblem(e, data) {
.addClass("framework-" + framework);

// Enable/disable the get hint button
$(".hint-box").toggle(numHints !== 0);
updateHintButtonText();
$("#hint").attr("disabled", hintsUsed >= numHints);
}
Expand Down
5 changes: 0 additions & 5 deletions khan-exercise.js
Expand Up @@ -1147,11 +1147,6 @@ var Khan = (function() {
// Remove and store hints to delay running modules on it
hints = problem.children(".hints").remove();

// Remove the hint box if there are no hints in the problem
if (hints.length === 0) {
$(".hint-box").remove();
}

// Only show the calculator if it's specifically allowed for this problem
if (problem.data("calculator") == null) {
$("#calculator").hide();
Expand Down

0 comments on commit 3cf2b69

Please sign in to comment.