Show More
@@ -81,7 +81,7 define([ | |||
|
81 | 81 | * |
|
82 | 82 | */ |
|
83 | 83 | OutputArea.prototype._should_scroll = function (lines) { |
|
84 | if (lines <=0 ){ return } | |
|
84 | if (lines <=0 ){ return; } | |
|
85 | 85 | if (!lines) { |
|
86 | 86 | lines = 100; |
|
87 | 87 | } |
@@ -177,7 +177,7 define([ | |||
|
177 | 177 | OutputArea.prototype.scroll_if_long = function (lines) { |
|
178 | 178 | var n = lines | OutputArea.minimum_scroll_threshold; |
|
179 | 179 | if(n <= 0){ |
|
180 | return | |
|
180 | return; | |
|
181 | 181 | } |
|
182 | 182 | |
|
183 | 183 | if (this._should_scroll(n)) { |
@@ -380,12 +380,12 define([ | |||
|
380 | 380 | } else { |
|
381 | 381 | return subarea; |
|
382 | 382 | } |
|
383 | } | |
|
383 | }; | |
|
384 | 384 | |
|
385 | 385 | |
|
386 | 386 | OutputArea.prototype._append_javascript_error = function (err, element) { |
|
387 | 387 | // display a message when a javascript error occurs in display output |
|
388 | var msg = "Javascript error adding output!" | |
|
388 | var msg = "Javascript error adding output!"; | |
|
389 | 389 | if ( element === undefined ) return; |
|
390 | 390 | element |
|
391 | 391 | .append($('<div/>').text(msg).addClass('js-error')) |
@@ -721,11 +721,11 define([ | |||
|
721 | 721 | var toinsert = this.create_output_subarea(md, "output_pdf", type); |
|
722 | 722 | var a = $('<a/>').attr('href', 'data:application/pdf;base64,'+pdf); |
|
723 | 723 | a.attr('target', '_blank'); |
|
724 | a.text('View PDF') | |
|
724 | a.text('View PDF'); | |
|
725 | 725 | toinsert.append(a); |
|
726 | 726 | element.append(toinsert); |
|
727 | 727 | return toinsert; |
|
728 | } | |
|
728 | }; | |
|
729 | 729 | |
|
730 | 730 | var append_latex = function (latex, md, element) { |
|
731 | 731 | // This method cannot do the typesetting because the latex first has to |
@@ -782,7 +782,7 define([ | |||
|
782 | 782 | // This seemed to be needed otherwise only the cell would be focused. |
|
783 | 783 | // But with the modal UI, this seems to work fine with one call to focus(). |
|
784 | 784 | raw_input.focus(); |
|
785 | } | |
|
785 | }; | |
|
786 | 786 | |
|
787 | 787 | OutputArea.prototype._submit_raw_input = function (evt) { |
|
788 | 788 | var container = this.element.find("div.raw_input_container"); |
@@ -798,7 +798,7 define([ | |||
|
798 | 798 | output_type : 'stream', |
|
799 | 799 | stream : 'stdout', |
|
800 | 800 | text : theprompt.text() + echo + '\n' |
|
801 | } | |
|
801 | }; | |
|
802 | 802 | // remove form container |
|
803 | 803 | container.parent().remove(); |
|
804 | 804 | // replace with plaintext version in stdout |
@@ -823,7 +823,7 define([ | |||
|
823 | 823 | // If a clear is queued, clear before adding another to the queue. |
|
824 | 824 | if (this.clear_queued) { |
|
825 | 825 | this.clear_output(false); |
|
826 |
} |
|
|
826 | } | |
|
827 | 827 | |
|
828 | 828 | this.clear_queued = true; |
|
829 | 829 | } else { |
@@ -845,7 +845,7 define([ | |||
|
845 | 845 | this.trusted = true; |
|
846 | 846 | this.unscroll_area(); |
|
847 | 847 | return; |
|
848 |
} |
|
|
848 | } | |
|
849 | 849 | }; |
|
850 | 850 | |
|
851 | 851 |
General Comments 0
You need to be logged in to leave comments.
Login now