i18n: fix missing translation on rubric save dialog

fixes CNVS-19578

test plan:
- go to a course and create an assignment, with points possible
- add a rubric to the assignment
- mark the rubric for grading and have the rubric points add up to
  a different total than the assignment points possible
- save the rubric
- a dialog should pop up, asking if you want to change the assignment
  points possible or leave them different
- the dialog buttons "Change" and "Leave Different" should show up and
  work properly

Change-Id: Iebff1e7fd4793d259d1bf464bf4962fb9ced044d
Reviewed-on: https://gerrit.instructure.com/51144
Tested-by: Jenkins
Reviewed-by: Benjamin Porter <bporter@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
This commit is contained in:
Simon Williams 2015-03-27 12:48:30 -06:00
parent 439e119492
commit be458f05ae
1 changed files with 10 additions and 4 deletions

View File

@ -751,10 +751,16 @@ define([
$("#edit_rubric_form").submit();
};
$confirmDialog.dialog({
buttons: {
"Change" : closeDialog,
"Leave different" : function(){ closeDialog(true); }
},
buttons: [
{
text: I18n.t('change', 'Change'),
click: closeDialog
},
{
text: I18n.t('leave_different', "Leave different"),
click: function() { closeDialog(true); }
}
],
width: 320,
resizable: false,
close: $confirmDialog.remove