mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
Merge pull request #1807 from minrk/set-dirty-output
set dirty flag when output arrives
This commit is contained in:
commit
f8f53ee805
@ -349,9 +349,11 @@ define([
|
||||
},
|
||||
iopub : {
|
||||
output : function() {
|
||||
that.events.trigger('set_dirty.Notebook', {value: true});
|
||||
that.output_area.handle_output.apply(that.output_area, arguments);
|
||||
},
|
||||
clear_output : function() {
|
||||
that.events.trigger('set_dirty.Notebook', {value: true});
|
||||
that.output_area.handle_clear_output.apply(that.output_area, arguments);
|
||||
},
|
||||
},
|
||||
@ -476,6 +478,7 @@ define([
|
||||
var prompt_html = CodeCell.input_prompt_function(this.input_prompt_number, nline);
|
||||
// This HTML call is okay because the user contents are escaped.
|
||||
this.element.find('div.input_prompt').html(prompt_html);
|
||||
this.events.trigger('set_dirty.Notebook', {value: true});
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user