diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index b57d2f0fc4..454cda2448 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -1216,8 +1216,8 @@ define([ // This will put all the deleted cells back in one location, rather than // where they came from. It will do until we have proper undo support. undelete_backup.index = cursor_ix_after; - $('#undelete_cell').removeClass('disabled').removeAttr("aria-label"); - + $('#undelete_cell').removeClass('disabled'); + $('.undelete_link').removeAttr("aria-disabled"); this.undelete_backup_stack.push(undelete_backup); this.set_dirty(true); @@ -1622,13 +1622,16 @@ define([ if (!this.paste_enabled) { $('#paste_cell_replace').removeClass('disabled') .on('click', function () {that.keyboard_manager.actions.call( - 'jupyter-notebook:paste-cell-replace');}).removeAttr("aria-label"); + 'jupyter-notebook:paste-cell-replace');}) + $('.paste_replace').removeAttr("aria-disabled"); $('#paste_cell_above').removeClass('disabled') .on('click', function () {that.keyboard_manager.actions.call( - 'jupyter-notebook:paste-cell-above');}).removeAttr("aria-label"); + 'jupyter-notebook:paste-cell-above');}); + $('.paste_above').removeAttr("aria-disabled"); $('#paste_cell_below').removeClass('disabled') .on('click', function () {that.keyboard_manager.actions.call( - 'jupyter-notebook:paste-cell-below');}).removeAttr("aria-label"); + 'jupyter-notebook:paste-cell-below');}); + $('.paste_below').removeAttr("aria-disabled"); this.paste_enabled = true; } }; @@ -1938,7 +1941,8 @@ define([ */ Notebook.prototype.enable_attachments_paste = function () { if (!this.paste_attachments_enabled) { - $('#paste_cell_attachments').removeClass('disabled').removeAttr("aria-label"); + $('#paste_cell_attachments').removeClass('disabled'); + $('.paste_attachments').removeAttr("aria-disabled"); this.paste_attachments_enabled = true; } }; @@ -1948,7 +1952,8 @@ define([ */ Notebook.prototype.set_insert_image_enabled = function(enabled) { if (enabled) { - $('#insert_image').removeClass('disabled').removeAttr("aria-label"); + $('#insert_image').removeClass('disabled'); + $('.image_link').removeAttr("aria-disabled"); } else { $('#insert_image').addClass('disabled'); } diff --git a/notebook/templates/notebook.html b/notebook/templates/notebook.html index ae8d9d3bf5..87982a7531 100644 --- a/notebook/templates/notebook.html +++ b/notebook/templates/notebook.html @@ -137,11 +137,11 @@