Skip to content

Commit

Permalink
Merge pull request #21 from uclixnjupyternbaccessibility/josh-branch
Browse files Browse the repository at this point in the history
Solved Issues jupyter#3967 and jupyter#4006
  • Loading branch information
ednut15 authored Jun 20, 2019
2 parents a1c7766 + 1dbabaa commit aa64d9d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions notebook/static/base/js/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ define(['jquery',
});

modal_obj.on('shown.bs.modal', function(){ editor.refresh(); });
modal_obj.on('hide.bs.modal', function(){options.edit_metadata_button.focus(); });
};

var edit_attachments = function (options) {
Expand Down
8 changes: 5 additions & 3 deletions notebook/static/notebook/js/celltoolbarpresets/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ define([

var CellToolbar = celltoolbar.CellToolbar;

var raw_edit = function (cell) {
var raw_edit = function (cell , edit_metadata_button) {
dialog.edit_metadata({
md: cell.metadata,
callback: function (md) {
cell.metadata = md;
},
name: i18n.msg._('Cell'),
notebook: this.notebook,
keyboard_manager: this.keyboard_manager
keyboard_manager: this.keyboard_manager,
edit_metadata_button: edit_metadata_button
});
};

Expand All @@ -28,9 +29,10 @@ define([
.addClass("btn btn-default btn-xs")
.text(i18n.msg._("Edit Metadata"))
.click( function () {
raw_edit(cell);
raw_edit(cell, this);
return false;
});

button_container.append(button);
};

Expand Down
5 changes: 2 additions & 3 deletions notebook/static/notebook/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,7 @@ define([
if (this.mode !== 'command') {
cell.command_mode();
this.mode = 'command';
$('div[class*="code_cell"]').attr('aria-label', 'Command Mode')
.attr('title', 'Command Mode');
$('div[class*="code_cell"]')
this.events.trigger('command_mode.Notebook');
this.keyboard_manager.command_mode();
}
Expand Down Expand Up @@ -967,7 +966,7 @@ define([
if (cell && this.mode !== 'edit') {
cell.edit_mode();
this.mode = 'edit';
$('div[class*="code_cell"]').attr('aria-label', 'Edit Mode').attr('title', 'Edit Mode');
$('div[class*="code_cell"]')
this.events.trigger('edit_mode.Notebook');
this.keyboard_manager.edit_mode();
}
Expand Down
Binary file added notebook/tests/selenium/geckodriver/geckodriver
Binary file not shown.
2 changes: 1 addition & 1 deletion notebook/tree/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def generate_page_title(self, path):
if page_title:
return page_title+'/'
else:
return 'Home'
return 'Home Page - Select or create a notebook'

@web.authenticated
def get(self, path=''):
Expand Down

0 comments on commit aa64d9d

Please sign in to comment.