Merge pull request #4686 from uclixnjupyternbaccessibility/issue-3941

Solved Issue #3941
This commit is contained in:
Thomas Kluyver 2019-06-25 10:21:15 +02:00 committed by GitHub
commit cfb9262338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -955,7 +955,11 @@ define([
var item_path = this.selected[0].path;
var item_name = this.selected[0].name;
var item_type = this.selected[0].type;
var input = $('<input/>').attr('type','text').attr('size','25').addClass('form-control')
var input = $('<input/>')
.attr('type','text')
.attr('size','25')
.attr('aria-labelledby','rename-message')
.addClass('form-control')
.val(item_name);
var rename_msg = function (type) {
switch(type) {
@ -975,6 +979,7 @@ define([
};
var dialog_body = $('<div/>').append(
$("<p/>").addClass("rename-message")
.attr('id', 'rename-message')
.text(rename_msg(item_type))
).append(
$("<br/>")