Skip to content

Commit

Permalink
Merge pull request #3566 from Carreau/fix-event-name
Browse files Browse the repository at this point in the history
fix event names
  • Loading branch information
Carreau committed Jul 6, 2013
2 parents 360a03c + c4ac215 commit 9ee7094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/html/static/notebook/js/notebook.js
Expand Up @@ -1945,7 +1945,7 @@ var IPython = (function (IPython) {
* @param {String} checkpoint ID
*/
Notebook.prototype.restore_checkpoint = function (checkpoint) {
$([IPython.events]).trigger('notebook_restoring.Notebook', checkpoint);
$([IPython.events]).trigger('checkpoint_restoring.Notebook', checkpoint);
var url = this.baseProjectUrl() + 'notebooks/' + this.notebook_id + '/checkpoints/' + checkpoint;
$.post(url).done(
$.proxy(this.restore_checkpoint_success, this)
Expand Down Expand Up @@ -1986,7 +1986,7 @@ var IPython = (function (IPython) {
* @param {String} checkpoint ID
*/
Notebook.prototype.delete_checkpoint = function (checkpoint) {
$([IPython.events]).trigger('notebook_restoring.Notebook', checkpoint);
$([IPython.events]).trigger('checkpoint_deleting.Notebook', checkpoint);
var url = this.baseProjectUrl() + 'notebooks/' + this.notebook_id + '/checkpoints/' + checkpoint;
$.ajax(url, {
type: 'DELETE',
Expand Down

0 comments on commit 9ee7094

Please sign in to comment.