From e16a5807c7c44095be20e783ae406f9b28bc5614 Mon Sep 17 00:00:00 2001 From: MinRK Date: Tue, 8 Oct 2013 17:16:59 -0700 Subject: [PATCH] fixup bad rebase --- IPython/html/static/notebook/js/codecell.js | 8 +++---- IPython/html/static/notebook/js/notebook.js | 22 +++++++++---------- .../html/static/services/kernels/js/kernel.js | 2 +- IPython/html/templates/notebook.html | 8 +++---- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index d168333d4..53b010ca4 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -240,7 +240,7 @@ var IPython = (function (IPython) { * @method execute */ CodeCell.prototype.execute = function () { - this.output_area.clear_output(true, true, true); + this.output_area.clear_output(); this.set_input_prompt('*'); this.element.addClass("running"); var callbacks = { @@ -250,7 +250,7 @@ var IPython = (function (IPython) { 'set_next_input': $.proxy(this._handle_set_next_input, this), 'input_request': $.proxy(this._handle_input_request, this) }; - var msg_id = this.session.kernel.execute(this.get_text(), callbacks, {silent: false, store_history: true}); + this.last_msg_id = this.session.kernel.execute(this.get_text(), callbacks, {silent: false, store_history: true}); }; /** @@ -386,8 +386,8 @@ var IPython = (function (IPython) { }; - CodeCell.prototype.clear_output = function (stdout, stderr, other) { - this.output_area.clear_output(stdout, stderr, other); + CodeCell.prototype.clear_output = function (wait) { + this.output_area.clear_output(wait); }; diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index c7d192228..ef8fb283a 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -756,7 +756,7 @@ var IPython = (function (IPython) { var i = this.index_or_selected(index); var cell = this.get_selected_cell(); this.undelete_backup = cell.toJSON(); - $('#undelete_cell').removeClass('ui-state-disabled'); + $('#undelete_cell').removeClass('disabled'); if (this.is_valid_cell_index(i)) { var ce = this.get_cell_element(i); ce.remove(); @@ -1039,11 +1039,11 @@ var IPython = (function (IPython) { Notebook.prototype.enable_paste = function () { var that = this; if (!this.paste_enabled) { - $('#paste_cell_replace').removeClass('ui-state-disabled') + $('#paste_cell_replace').removeClass('disabled') .on('click', function () {that.paste_cell_replace();}); - $('#paste_cell_above').removeClass('ui-state-disabled') + $('#paste_cell_above').removeClass('disabled') .on('click', function () {that.paste_cell_above();}); - $('#paste_cell_below').removeClass('ui-state-disabled') + $('#paste_cell_below').removeClass('disabled') .on('click', function () {that.paste_cell_below();}); this.paste_enabled = true; }; @@ -1056,9 +1056,9 @@ var IPython = (function (IPython) { */ Notebook.prototype.disable_paste = function () { if (this.paste_enabled) { - $('#paste_cell_replace').addClass('ui-state-disabled').off('click'); - $('#paste_cell_above').addClass('ui-state-disabled').off('click'); - $('#paste_cell_below').addClass('ui-state-disabled').off('click'); + $('#paste_cell_replace').addClass('disabled').off('click'); + $('#paste_cell_above').addClass('disabled').off('click'); + $('#paste_cell_below').addClass('disabled').off('click'); this.paste_enabled = false; }; }; @@ -1157,7 +1157,7 @@ var IPython = (function (IPython) { this.undelete_backup = null; this.undelete_index = null; } - $('#undelete_cell').addClass('ui-state-disabled'); + $('#undelete_cell').addClass('disabled'); } // Split/merge @@ -1360,7 +1360,7 @@ var IPython = (function (IPython) { var cells = this.get_cells(); for (var i=0; i
  • Cut Cell
  • Copy Cell
  • -
  • Paste Cell Above
  • -
  • Paste Cell Below
  • -
  • Paste Cell & Replace
  • +
  • Paste Cell Above
  • +
  • Paste Cell Below
  • +
  • Paste Cell & Replace
  • Delete Cell
  • -
  • Undo Delete Cell
  • +
  • Undo Delete Cell
  • Split Cell
  • Merge Cell Above