Skip to content

Commit

Permalink
implement PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dodge committed Aug 9, 2013
1 parent 4054544 commit 487ae96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cms/templates/export.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$(document).ready(function() {

%if unit:
dialog = new CMS.Views.Prompt({
var dialog = new CMS.Views.Prompt({
title: gettext('There has been an error with your export.'),
message: gettext("There has been a failure to export to XML at least one component. It is recommended that you go to the edit page and repair the error before attempting another export. Please check that all components on the page are valid and do not display any error messages."),
intent: "error",
Expand All @@ -25,17 +25,17 @@
}
},
secondary: {
text: gettext('cancel'),
text: gettext('Cancel'),
click: function(view) {
view.hide();
}
}
}
});
% else:
var msg = gettext("<p>There has been a failure to export your course to XML. Unfortunately, we do not have specific enough information to assist you in identifying the failed component. It is recommended that you inspect your courseware to identify any components in error and try again.</p><p>The raw error message is:</p>");
var msg = "<p>" + gettext("There has been a failure to export your course to XML. Unfortunately, we do not have specific enough information to assist you in identifying the failed component. It is recommended that you inspect your courseware to identify any components in error and try again.") + "</p><p>" + gettext("The raw error message is:") + "</p>";
msg = msg + "${raw_err_msg}";
dialog = new CMS.Views.Prompt({
var dialog = new CMS.Views.Prompt({
title: gettext('There has been an error with your export.'),
message: msg,
intent: "error",
Expand All @@ -48,7 +48,7 @@
}
},
secondary: {
text: gettext('cancel'),
text: gettext('Cancel'),
click: function(view) {
view.hide();
}
Expand Down

0 comments on commit 487ae96

Please sign in to comment.