|
|
|
|
@ -22,12 +22,16 @@ var IPython = (function (IPython) {
|
|
|
|
|
|
|
|
|
|
LoginWidget.prototype.style = function () {
|
|
|
|
|
this.element.find('button#logout').button();
|
|
|
|
|
this.element.find('button#login').button();
|
|
|
|
|
};
|
|
|
|
|
LoginWidget.prototype.bind_events = function () {
|
|
|
|
|
var that = this;
|
|
|
|
|
this.element.find("button#logout").click(function () {
|
|
|
|
|
window.location = "/logout";
|
|
|
|
|
});
|
|
|
|
|
this.element.find("button#login").click(function () {
|
|
|
|
|
window.location = "/login";
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Set module variables
|
|
|
|
|
|