mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #6460 from jasongrout/trust
Fix several small bugs in the notebook trust framework
This commit is contained in:
commit
5f27bff2da
@ -1855,9 +1855,9 @@ define([
|
||||
}
|
||||
}
|
||||
}
|
||||
if (trusted != this.trusted) {
|
||||
if (trusted !== this.trusted) {
|
||||
this.trusted = trusted;
|
||||
this.events.trigger("trust_changed.Notebook", trusted);
|
||||
this.events.trigger("trust_changed.Notebook", {value: trusted});
|
||||
}
|
||||
if (content.worksheets.length > 1) {
|
||||
dialog.modal({
|
||||
@ -2070,7 +2070,7 @@ define([
|
||||
cell.output_area.trusted = true;
|
||||
}
|
||||
}
|
||||
this.events.on('notebook_saved.Notebook', function () {
|
||||
nb.events.on('notebook_saved.Notebook', function () {
|
||||
window.location.reload();
|
||||
});
|
||||
nb.save_notebook();
|
||||
|
Loading…
Reference in New Issue
Block a user