##// END OF EJS Templates
fix event names
Matthias BUSSONNIER -
Show More
@@ -1945,7 +1945,7 b' var IPython = (function (IPython) {'
1945 * @param {String} checkpoint ID
1945 * @param {String} checkpoint ID
1946 */
1946 */
1947 Notebook.prototype.restore_checkpoint = function (checkpoint) {
1947 Notebook.prototype.restore_checkpoint = function (checkpoint) {
1948 $([IPython.events]).trigger('notebook_restoring.Notebook', checkpoint);
1948 $([IPython.events]).trigger('checkpoint_restoring.Notebook', checkpoint);
1949 var url = this.baseProjectUrl() + 'notebooks/' + this.notebook_id + '/checkpoints/' + checkpoint;
1949 var url = this.baseProjectUrl() + 'notebooks/' + this.notebook_id + '/checkpoints/' + checkpoint;
1950 $.post(url).done(
1950 $.post(url).done(
1951 $.proxy(this.restore_checkpoint_success, this)
1951 $.proxy(this.restore_checkpoint_success, this)
@@ -1986,7 +1986,7 b' var IPython = (function (IPython) {'
1986 * @param {String} checkpoint ID
1986 * @param {String} checkpoint ID
1987 */
1987 */
1988 Notebook.prototype.delete_checkpoint = function (checkpoint) {
1988 Notebook.prototype.delete_checkpoint = function (checkpoint) {
1989 $([IPython.events]).trigger('notebook_restoring.Notebook', checkpoint);
1989 $([IPython.events]).trigger('checkpoint_deleting.Notebook', checkpoint);
1990 var url = this.baseProjectUrl() + 'notebooks/' + this.notebook_id + '/checkpoints/' + checkpoint;
1990 var url = this.baseProjectUrl() + 'notebooks/' + this.notebook_id + '/checkpoints/' + checkpoint;
1991 $.ajax(url, {
1991 $.ajax(url, {
1992 type: 'DELETE',
1992 type: 'DELETE',
General Comments 0
You need to be logged in to leave comments. Login now