diff --git a/notebook/static/notebook/js/notificationarea.js b/notebook/static/notebook/js/notificationarea.js index 2cebb44b6f..c8fadc687b 100644 --- a/notebook/static/notebook/js/notificationarea.js +++ b/notebook/static/notebook/js/notificationarea.js @@ -394,12 +394,17 @@ define([ // Notebook trust events this.events.on('trust_changed.Notebook', function (event, trusted) { if (trusted) { - tnw.set_message(i18n.msg._("Trusted")); + tnw.set_message(i18n.msg._("Trusted"), undefined, function() { + return false; + }, {'title':'Javascript enabled for notebook display'}); + // don't allow 'Trusted' button to be clicked + $(tnw.selector).attr('disabled', true) + $(tnw.selector).css('cursor', 'help'); } else { tnw.set_message(i18n.msg._("Not Trusted"), undefined, function() { that.notebook.trust_notebook(); return false; - }); + }, {'title':'Javascript disabled for notebook display'}); } }); };