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