Merge pull request #8231 from edx/zub/story/ecom-1612-change-icrv-block-fields

use reverification xblock location as an identifier of reverification…
This commit is contained in:
zubair-arbi
2015-06-01 20:41:47 +05:00
14 changed files with 668 additions and 446 deletions

View File

@@ -20,7 +20,6 @@
return new edx.verify_student.InCourseReverifyView({
courseKey: el.data('course-key'),
checkpointName: el.data('checkpoint-name'),
platformName: el.data('platform-name'),
usageId: el.data('usage-id'),
errorModel: errorView.model

View File

@@ -16,7 +16,6 @@ var edx = edx || {};
defaults: {
courseKey: '',
checkpointName: '',
faceImage: '',
usageId: ''
},
@@ -28,9 +27,8 @@ var edx = edx || {};
face_image: model.get( 'faceImage' )
},
url = _.str.sprintf(
'/verify_student/reverify/%(courseKey)s/%(checkpointName)s/%(usageId)s/', {
'/verify_student/reverify/%(courseKey)s/%(usageId)s/', {
courseKey: model.get('courseKey'),
checkpointName: model.get('checkpointName'),
usageId: model.get('usageId')
}
);

View File

@@ -26,14 +26,12 @@
this.errorModel = obj.errorModel || null;
this.courseKey = obj.courseKey || null;
this.checkpointName = obj.checkpointName || null;
this.platformName = obj.platformName || null;
this.usageId = obj.usageId || null;
this.model = new edx.verify_student.ReverificationModel({
courseKey: this.courseKey,
checkpointName: this.checkpointName,
usageId: this.usageId
});
@@ -47,7 +45,6 @@
$( this.templateId ).html(),
{
courseKey: this.courseKey,
checkpointName: this.checkpointName,
platformName: this.platformName
}
);