Show More
@@ -22,12 +22,16 b' var IPython = (function (IPython) {' | |||
|
22 | 22 | |
|
23 | 23 | LoginWidget.prototype.style = function () { |
|
24 | 24 | this.element.find('button#logout').button(); |
|
25 | this.element.find('button#login').button(); | |
|
25 | 26 | }; |
|
26 | 27 | LoginWidget.prototype.bind_events = function () { |
|
27 | 28 | var that = this; |
|
28 | 29 | this.element.find("button#logout").click(function () { |
|
29 | 30 | window.location = "/logout"; |
|
30 | 31 | }); |
|
32 | this.element.find("button#login").click(function () { | |
|
33 | window.location = "/login"; | |
|
34 | }); | |
|
31 | 35 | }; |
|
32 | 36 | |
|
33 | 37 | // Set module variables |
General Comments 0
You need to be logged in to leave comments.
Login now