##// END OF EJS Templates
fixup bad rebase
MinRK -
Show More
@@ -240,7 +240,7 b' var IPython = (function (IPython) {'
240 240 * @method execute
241 241 */
242 242 CodeCell.prototype.execute = function () {
243 this.output_area.clear_output(true, true, true);
243 this.output_area.clear_output();
244 244 this.set_input_prompt('*');
245 245 this.element.addClass("running");
246 246 var callbacks = {
@@ -250,7 +250,7 b' var IPython = (function (IPython) {'
250 250 'set_next_input': $.proxy(this._handle_set_next_input, this),
251 251 'input_request': $.proxy(this._handle_input_request, this)
252 252 };
253 var msg_id = this.session.kernel.execute(this.get_text(), callbacks, {silent: false, store_history: true});
253 this.last_msg_id = this.session.kernel.execute(this.get_text(), callbacks, {silent: false, store_history: true});
254 254 };
255 255
256 256 /**
@@ -386,8 +386,8 b' var IPython = (function (IPython) {'
386 386 };
387 387
388 388
389 CodeCell.prototype.clear_output = function (stdout, stderr, other) {
390 this.output_area.clear_output(stdout, stderr, other);
389 CodeCell.prototype.clear_output = function (wait) {
390 this.output_area.clear_output(wait);
391 391 };
392 392
393 393
@@ -756,7 +756,7 b' var IPython = (function (IPython) {'
756 756 var i = this.index_or_selected(index);
757 757 var cell = this.get_selected_cell();
758 758 this.undelete_backup = cell.toJSON();
759 $('#undelete_cell').removeClass('ui-state-disabled');
759 $('#undelete_cell').removeClass('disabled');
760 760 if (this.is_valid_cell_index(i)) {
761 761 var ce = this.get_cell_element(i);
762 762 ce.remove();
@@ -1039,11 +1039,11 b' var IPython = (function (IPython) {'
1039 1039 Notebook.prototype.enable_paste = function () {
1040 1040 var that = this;
1041 1041 if (!this.paste_enabled) {
1042 $('#paste_cell_replace').removeClass('ui-state-disabled')
1042 $('#paste_cell_replace').removeClass('disabled')
1043 1043 .on('click', function () {that.paste_cell_replace();});
1044 $('#paste_cell_above').removeClass('ui-state-disabled')
1044 $('#paste_cell_above').removeClass('disabled')
1045 1045 .on('click', function () {that.paste_cell_above();});
1046 $('#paste_cell_below').removeClass('ui-state-disabled')
1046 $('#paste_cell_below').removeClass('disabled')
1047 1047 .on('click', function () {that.paste_cell_below();});
1048 1048 this.paste_enabled = true;
1049 1049 };
@@ -1056,9 +1056,9 b' var IPython = (function (IPython) {'
1056 1056 */
1057 1057 Notebook.prototype.disable_paste = function () {
1058 1058 if (this.paste_enabled) {
1059 $('#paste_cell_replace').addClass('ui-state-disabled').off('click');
1060 $('#paste_cell_above').addClass('ui-state-disabled').off('click');
1061 $('#paste_cell_below').addClass('ui-state-disabled').off('click');
1059 $('#paste_cell_replace').addClass('disabled').off('click');
1060 $('#paste_cell_above').addClass('disabled').off('click');
1061 $('#paste_cell_below').addClass('disabled').off('click');
1062 1062 this.paste_enabled = false;
1063 1063 };
1064 1064 };
@@ -1157,7 +1157,7 b' var IPython = (function (IPython) {'
1157 1157 this.undelete_backup = null;
1158 1158 this.undelete_index = null;
1159 1159 }
1160 $('#undelete_cell').addClass('ui-state-disabled');
1160 $('#undelete_cell').addClass('disabled');
1161 1161 }
1162 1162
1163 1163 // Split/merge
@@ -1360,7 +1360,7 b' var IPython = (function (IPython) {'
1360 1360 var cells = this.get_cells();
1361 1361 for (var i=0; i<ncells; i++) {
1362 1362 if (cells[i] instanceof IPython.CodeCell) {
1363 cells[i].clear_output(true,true,true);
1363 cells[i].clear_output();
1364 1364 // Make all In[] prompts blank, as well
1365 1365 // TODO: make this configurable (via checkbox?)
1366 1366 cells[i].set_input_prompt();
@@ -1873,7 +1873,7 b' var IPython = (function (IPython) {'
1873 1873 * Request a notebook's data from the server.
1874 1874 *
1875 1875 * @method load_notebook
1876 * @param {String} notebook_naem and path A notebook to load
1876 * @param {String} notebook_name and path A notebook to load
1877 1877 */
1878 1878 Notebook.prototype.load_notebook = function (notebook_name, notebook_path) {
1879 1879 var that = this;
1 NO CONTENT: modified file
@@ -86,11 +86,11 b' class="notebook_app"'
86 86 <ul class="dropdown-menu">
87 87 <li id="cut_cell"><a href="#">Cut Cell</a></li>
88 88 <li id="copy_cell"><a href="#">Copy Cell</a></li>
89 <li id="paste_cell_above" class="ui-state-disabled"><a href="#">Paste Cell Above</a></li>
90 <li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Cell Below</a></li>
91 <li id="paste_cell_replace" class="ui-state-disabled"><a href="#">Paste Cell &amp; Replace</a></li>
89 <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li>
90 <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li>
91 <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell &amp; Replace</a></li>
92 92 <li id="delete_cell"><a href="#">Delete Cell</a></li>
93 <li id="undelete_cell" class="ui-state-disabled"><a href="#">Undo Delete Cell</a></li>
93 <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
94 94 <li class="divider"></li>
95 95 <li id="split_cell"><a href="#">Split Cell</a></li>
96 96 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
General Comments 0
You need to be logged in to leave comments. Login now