From af645de64ea5d06aee269e3c994f1f08297c7056 2013-10-17 21:09:18 From: MinRK Date: 2013-10-17 21:09:18 Subject: [PATCH] fixup bad rebase --- diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index d168333..53b010c 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 c7d1922..ef8fb28 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