##// END OF EJS Templates
store nonexistent prompt number as null
MinRK -
Show More
@@ -15,7 +15,7 b' var IPython = (function (IPython) {'
15 15
16 16 var CodeCell = function (notebook) {
17 17 this.code_mirror = null;
18 this.input_prompt_number = ' ';
18 this.input_prompt_number = null;
19 19 this.is_completing = false;
20 20 this.completion_cursor = null;
21 21 this.outputs = [];
@@ -757,9 +757,9 b' var IPython = (function (IPython) {'
757 757 };
758 758
759 759 CodeCell.prototype.set_input_prompt = function (number) {
760 var n = number || ' ';
761 this.input_prompt_number = n;
762 this.element.find('div.input_prompt').html('In [' + n + ']:');
760 this.input_prompt_number = number;
761 var ns = number || " ";
762 this.element.find('div.input_prompt').html('In [' + ns + ']:');
763 763 };
764 764
765 765
@@ -821,7 +821,7 b' var IPython = (function (IPython) {'
821 821 var data = {};
822 822 data.input = this.get_code();
823 823 data.cell_type = 'code';
824 if (this.input_prompt_number !== ' ') {
824 if (this.input_prompt_number) {
825 825 data.prompt_number = this.input_prompt_number;
826 826 };
827 827 var outputs = [];
General Comments 0
You need to be logged in to leave comments. Login now