add title attributes to widgets and disable clicking trusted button

Ashley Teoh 8 years ago
parent 1b99df995b
commit 078d3f5be6

@ -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'});
}
});
};

Loading…
Cancel
Save