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:
@@ -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();
|
||||
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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 ));
|
||||
|
||||
Reference in New Issue
Block a user