disable trust-notebook click event

when trust-notebook item is disabled
Min RK 11 years ago
parent a900545e78
commit 5b4657e9c5

@ -169,11 +169,13 @@ define([
this.events.on('trust_changed.Notebook', function (event, trusted) {
if (trusted) {
that.element.find('#trust_notebook')
.addClass("disabled")
.addClass("disabled").off('click')
.find("a").text("Trusted Notebook");
} else {
that.element.find('#trust_notebook')
.removeClass("disabled")
.removeClass("disabled").on('click', function () {
that.notebook.trust_notebook();
})
.find("a").text("Trust Notebook");
}
if(event)event.preventDefault();

Loading…
Cancel
Save