From 4f45bdc3dce73fea21d4fcccd545678d6179640e Mon Sep 17 00:00:00 2001 From: Celina Kilcrease Date: Thu, 5 Apr 2018 11:57:06 -0400 Subject: [PATCH] added labels and changed ids according to accessibility guidelines, added new event handlers for new ids --- notebook/static/auth/js/loginmain.js | 4 +++- notebook/templates/login.html | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/notebook/static/auth/js/loginmain.js b/notebook/static/auth/js/loginmain.js index ab9e51e4f..025112188 100644 --- a/notebook/static/auth/js/loginmain.js +++ b/notebook/static/auth/js/loginmain.js @@ -5,9 +5,11 @@ define(['jquery', 'base/js/namespace', 'base/js/page'], function($, IPython, pag function login_main() { var page_instance = new page.Page('div#header', 'div#site'); $('button#login_submit').addClass("btn btn-default"); + $('button#login_new_pass_submit').addClass("btn btn-default"); page_instance.show(); $('input#password_input').focus(); - + $('input#token_input').focus(); + IPython.page = page_instance; } return login_main; diff --git a/notebook/templates/login.html b/notebook/templates/login.html index 08e5bd1db..f341d9798 100644 --- a/notebook/templates/login.html +++ b/notebook/templates/login.html @@ -27,6 +27,7 @@ {% endif %} @@ -92,14 +93,16 @@ http://localhost:8888/?token=c8de56fa... :: /Users/you/notebooks
{{ xsrf_form_html() | safe }}
- + +
+
- +
{% endif %}