Commit 7b6604a4 by Andy Armstrong

Remove unnecessary maxlen declarations

maxlen has been deprecated by JSHint
parent 7e363f30
...@@ -257,7 +257,6 @@ OpenAssessment.ResponseView.prototype = { ...@@ -257,7 +257,6 @@ OpenAssessment.ResponseView.prototype = {
if (enabled) { if (enabled) {
window.onbeforeunload = function() { window.onbeforeunload = function() {
// Keep this on one big line to avoid gettext bug: http://stackoverflow.com/a/24579117 // Keep this on one big line to avoid gettext bug: http://stackoverflow.com/a/24579117
/* jshint maxlen:300 */
return gettext("If you leave this page without saving or submitting your response, you'll lose any work you've done on the response."); return gettext("If you leave this page without saving or submitting your response, you'll lose any work you've done on the response.");
}; };
} }
...@@ -478,7 +477,6 @@ OpenAssessment.ResponseView.prototype = { ...@@ -478,7 +477,6 @@ OpenAssessment.ResponseView.prototype = {
**/ **/
confirmSubmission: function() { confirmSubmission: function() {
// Keep this on one big line to avoid gettext bug: http://stackoverflow.com/a/24579117 // Keep this on one big line to avoid gettext bug: http://stackoverflow.com/a/24579117
/* jshint maxlen:300 */
var msg = gettext("You're about to submit your response for this assignment. After you submit this response, you can't change it or submit a new response."); var msg = gettext("You're about to submit your response for this assignment. After you submit this response, you can't change it or submit a new response.");
// TODO -- UI for confirmation dialog instead of JS confirm // TODO -- UI for confirmation dialog instead of JS confirm
return $.Deferred(function(defer) { return $.Deferred(function(defer) {
......
...@@ -93,7 +93,6 @@ OpenAssessment.StudentTrainingListener.prototype = { ...@@ -93,7 +93,6 @@ OpenAssessment.StudentTrainingListener.prototype = {
}); });
if (criterionAdded) { if (criterionAdded) {
/* jshint maxlen:300 */
this.displayAlertMsg( this.displayAlertMsg(
gettext("Criterion Added"), gettext("Criterion Added"),
gettext("You have added a criterion. You will need to select an option for the criterion in the Learner Training step. To do this, click the Settings tab.") gettext("You have added a criterion. You will need to select an option for the criterion in the Learner Training step. To do this, click the Settings tab.")
...@@ -141,7 +140,6 @@ OpenAssessment.StudentTrainingListener.prototype = { ...@@ -141,7 +140,6 @@ OpenAssessment.StudentTrainingListener.prototype = {
}); });
if (invalidated) { if (invalidated) {
/* jshint maxlen:300 */
this.displayAlertMsg( this.displayAlertMsg(
gettext("Option Deleted"), gettext("Option Deleted"),
gettext("You have deleted an option. That option has been removed from its criterion in the sample responses in the Learner Training step. You might have to select a new option for the criterion.") gettext("You have deleted an option. That option has been removed from its criterion in the sample responses in the Learner Training step. You might have to select a new option for the criterion.")
...@@ -177,7 +175,6 @@ OpenAssessment.StudentTrainingListener.prototype = { ...@@ -177,7 +175,6 @@ OpenAssessment.StudentTrainingListener.prototype = {
}); });
if (changed) { if (changed) {
/* jshint maxlen:300 */
this.displayAlertMsg( this.displayAlertMsg(
gettext("Option Deleted"), gettext("Option Deleted"),
gettext("You have deleted all the options for this criterion. The criterion has been removed from the sample responses in the Learner Training step.") gettext("You have deleted all the options for this criterion. The criterion has been removed from the sample responses in the Learner Training step.")
...@@ -205,7 +202,6 @@ OpenAssessment.StudentTrainingListener.prototype = { ...@@ -205,7 +202,6 @@ OpenAssessment.StudentTrainingListener.prototype = {
); );
if (changed) { if (changed) {
/* jshint maxlen:300 */
this.displayAlertMsg( this.displayAlertMsg(
gettext("Criterion Deleted"), gettext("Criterion Deleted"),
gettext("You have deleted a criterion. The criterion has been removed from the example responses in the Learner Training step.") gettext("You have deleted a criterion. The criterion has been removed from the example responses in the Learner Training step.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment