Show More
@@ -169,11 +169,13 b' define([' | |||||
169 | this.events.on('trust_changed.Notebook', function (event, trusted) { |
|
169 | this.events.on('trust_changed.Notebook', function (event, trusted) { | |
170 | if (trusted) { |
|
170 | if (trusted) { | |
171 | that.element.find('#trust_notebook') |
|
171 | that.element.find('#trust_notebook') | |
172 | .addClass("disabled") |
|
172 | .addClass("disabled").off('click') | |
173 | .find("a").text("Trusted Notebook"); |
|
173 | .find("a").text("Trusted Notebook"); | |
174 | } else { |
|
174 | } else { | |
175 | that.element.find('#trust_notebook') |
|
175 | that.element.find('#trust_notebook') | |
176 | .removeClass("disabled") |
|
176 | .removeClass("disabled").on('click', function () { | |
|
177 | that.notebook.trust_notebook(); | |||
|
178 | }) | |||
177 | .find("a").text("Trust Notebook"); |
|
179 | .find("a").text("Trust Notebook"); | |
178 | } |
|
180 | } | |
179 | if(event)event.preventDefault(); |
|
181 | if(event)event.preventDefault(); |
General Comments 0
You need to be logged in to leave comments.
Login now