Merge pull request #7660 from edx/aamir-khan/ECOM-1396/checkoint-name-field

Aamir khan/ecom 1396/checkoint name field
This commit is contained in:
Aamir
2015-04-23 12:06:09 +05:00
10 changed files with 91 additions and 17 deletions

View File

@@ -22,7 +22,7 @@
courseKey: el.data('course-key'),
checkpointName: el.data('checkpoint-name'),
platformName: el.data('platform-name'),
location: el.data('location'),
usageId: el.data('usage-id'),
errorModel: errorView.model
}).render();

View File

@@ -18,7 +18,7 @@ var edx = edx || {};
courseKey: '',
checkpointName: '',
faceImage: '',
location: ''
usageId: ''
},
sync: function( method ) {
@@ -28,10 +28,10 @@ var edx = edx || {};
face_image: model.get( 'faceImage' )
},
url = _.str.sprintf(
'/verify_student/reverify/%(courseKey)s/%(checkpointName)s/%(location)s/', {
'/verify_student/reverify/%(courseKey)s/%(checkpointName)s/%(usageId)s/', {
courseKey: model.get('courseKey'),
checkpointName: model.get('checkpointName'),
location: model.get('location')
usageId: model.get('usageId')
}
);

View File

@@ -28,13 +28,13 @@
this.courseKey = obj.courseKey || null;
this.checkpointName = obj.checkpointName || null;
this.platformName = obj.platformName || null;
this.location = obj.location || null;
this.usageId = obj.usageId || null;
this.model = new edx.verify_student.ReverificationModel({
courseKey: this.courseKey,
checkpointName: this.checkpointName,
location: this.location
usageId: this.usageId
});
this.listenTo( this.model, 'sync', _.bind( this.handleSubmitPhotoSuccess, this ));