Skip to content

Commit

Permalink
Merge pull request #3386 from ashleytqy/trusted-widget-edits
Browse files Browse the repository at this point in the history
Adding description for 'Trusted' widgets
  • Loading branch information
minrk authored Mar 1, 2018
2 parents 1b99df9 + 978e16a commit e9da502
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions notebook/static/notebook/js/notificationarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
}
});
};
Expand Down

0 comments on commit e9da502

Please sign in to comment.