Prevent scrolling on initial challenge run

- Add additional parameter to function displayTestResults

Correction to errors: Line exceeds the maximum line length of 80   max-len

Do not scroll on JS challenges
This commit is contained in:
HelderSepu
2016-06-20 22:05:15 -04:00
parent b4cf1037d5
commit e6542fa00e
2 changed files with 9 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ $(document).ready(function() {
return common.updateOutputDisplay('' + err);
}
common.updateOutputDisplay(output);
common.displayTestResults(tests);
common.displayTestResults(tests, true);
if (solved) {
common.showCompletion();
}
@@ -140,7 +140,7 @@ $(document).ready(function() {
}
return common.updateOutputDisplay('' + err);
}
common.displayTestResults(tests);
common.displayTestResults(tests, false);
return null;
},
({ err }) => {
@@ -164,7 +164,7 @@ $(document).ready(function() {
return common.updateOutputDisplay('' + err);
}
common.codeStorage.updateStorage(challengeName, originalCode);
common.displayTestResults(tests);
common.displayTestResults(tests, false);
return null;
},
(err) => {