diff --git a/cms/templates/component.html b/cms/templates/component.html index 07ab92c592..cd8da36d00 100644 --- a/cms/templates/component.html +++ b/cms/templates/component.html @@ -31,6 +31,6 @@ ${_("Edit")} ${_("Delete")} - + ${preview} diff --git a/cms/templates/import.html b/cms/templates/import.html index 51ee1ef839..0c8f947dce 100644 --- a/cms/templates/import.html +++ b/cms/templates/import.html @@ -163,10 +163,10 @@ var allStats = $('#status-infos'); var feedbackUrl = "${import_status_url}"; var defaults = [ - '${_("There was an error during the upload process.")}\n', - '${_("There was an error while unpacking the file.")}\n', - '${_("There was an error while verifying the file you submitted.")}\n', - '${_("There was an error while importing the new course to our database.")}\n' + "${_("There was an error during the upload process.")}\n", + "${_("There was an error while unpacking the file.")}\n", + "${_("There was an error while verifying the file you submitted.")}\n", + "${_("There was an error while importing the new course to our database.")}\n" ]; $('#fileupload').fileupload({ @@ -201,12 +201,12 @@ $('#fileupload').fileupload({ CourseImport.stageError(stage, defaults[stage] + errMsg); } else { - alert('${_("Your import has failed.")}\n\n' + errMsg); + alert("${_("Your import has failed.")}\n\n" + errMsg); } - chooseBtn.html('${_("Choose new file")}').show(); + chooseBtn.html("${_("Choose new file")}").show(); bar.hide(); } - chooseBtn.html('${_("Choose new file")}').show(); + chooseBtn.html("${_("Choose new file")}").show(); bar.hide(); }); }); @@ -243,7 +243,7 @@ $('#fileupload').fileupload({ }, start: function(e) { window.onbeforeunload = function() { - return '${_("Your import is in progress; navigating away will abort it.")}'; + return "${_("Your import is in progress; navigating away will abort it.")}"; } }, sequentialUploads: true, diff --git a/cms/templates/widgets/problem-edit.html b/cms/templates/widgets/problem-edit.html index 2d23a6f441..e5942828de 100644 --- a/cms/templates/widgets/problem-edit.html +++ b/cms/templates/widgets/problem-edit.html @@ -7,24 +7,24 @@ %if enable_markdown:
diff --git a/cms/templates/widgets/sock.html b/cms/templates/widgets/sock.html index 963e55ae43..4ab954c363 100644 --- a/cms/templates/widgets/sock.html +++ b/cms/templates/widgets/sock.html @@ -22,7 +22,7 @@