diff --git a/notebook/static/notebook/js/outputarea.js b/notebook/static/notebook/js/outputarea.js index 281215b6a..66a1ffcdb 100644 --- a/notebook/static/notebook/js/outputarea.js +++ b/notebook/static/notebook/js/outputarea.js @@ -467,6 +467,11 @@ define([ this.element.trigger('changed', {output_area: this}); }; + OutputArea.output_prompt_classical = function(prompt_value) { + return $('').text(i18n.msg.sprintf(i18n.msg._('Out[%d]:'),prompt_value)); + }; + + OutputArea.output_prompt_function = OutputArea.output_prompt_classical; OutputArea.prototype.append_execute_result = function (json) { var n = json.execution_count || ' '; @@ -476,9 +481,7 @@ define([ toinsert.find('div.prompt') .addClass('output_prompt') .empty() - .append( - $('').text(i18n.msg.sprintf(i18n.msg._('Out[%d]:'),n)) - ); + .append(OutputArea.output_prompt_function(n)); } var inserted = this.append_mime_type(json, toinsert); if (inserted) {