From 1e7625743c4896cdd616ec065af18dd3a0fe0cf6 2014-09-12 17:42:41 From: Min RK Date: 2014-09-12 17:42:41 Subject: [PATCH] Merge pull request #6460 from jasongrout/trust Fix several small bugs in the notebook trust framework --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 8b837ee..98d6e9a 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -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();