some minor fixes
This commit is contained in:
@ -53,10 +53,10 @@ CodeOceanEditorFlowr = {
|
||||
}).done(function () {
|
||||
this.hideSpinner();
|
||||
$.flash.success({text: $('#askForCommentsButton').data('message-success')});
|
||||
}).error(this.ajaxError);
|
||||
}.bind(this)).error(this.ajaxError.bind(this));
|
||||
};
|
||||
|
||||
this.createSubmission($('.requestCommentsButton'), null, createRequestForComments);
|
||||
this.createSubmission($('.requestCommentsButton'), null, createRequestForComments.bind(this));
|
||||
|
||||
$('#comment-modal').modal('hide');
|
||||
var button = $('.requestCommentsButton');
|
||||
|
@ -29,7 +29,10 @@ CodeOceanEditorSubmissions = {
|
||||
});
|
||||
jqxhr.always(this.hideSpinner.bind(this));
|
||||
jqxhr.done(this.createSubmissionCallback.bind(this));
|
||||
jqxhr.done(callback.bind(this));
|
||||
if(callback != null){
|
||||
jqxhr.done(callback.bind(this));
|
||||
}
|
||||
|
||||
jqxhr.fail(this.ajaxError.bind(this));
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user