From 9ee70948349596e6e45bcd35335b99f85daac1fe 2013-07-06 18:18:04
From: Matthias Bussonnier <bussonniermatthias@gmail.com>
Date: 2013-07-06 18:18:04
Subject: [PATCH] Merge pull request #3566 from Carreau/fix-event-name

fix event names
---

diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index 5fedfec..0fe0df2 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -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)
@@ -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',