@@ -1216,8 +1216,8 @@ define([
1216
1216
// This will put all the deleted cells back in one location, rather than
1217
1217
// where they came from. It will do until we have proper undo support.
1218
1218
undelete_backup . index = cursor_ix_after ;
1219
- $ ( '#undelete_cell' ) . removeClass ( 'disabled' ) . removeAttr ( "aria-label" ) ;
1220
-
1219
+ $ ( '#undelete_cell' ) . removeClass ( 'disabled' ) ;
1220
+ $ ( '.undelete_link' ) . removeAttr ( "aria-disabled" ) ;
1221
1221
this . undelete_backup_stack . push ( undelete_backup ) ;
1222
1222
this . set_dirty ( true ) ;
1223
1223
@@ -1622,13 +1622,16 @@ define([
1622
1622
if ( ! this . paste_enabled ) {
1623
1623
$ ( '#paste_cell_replace' ) . removeClass ( 'disabled' )
1624
1624
. on ( 'click' , function ( ) { that . keyboard_manager . actions . call (
1625
- 'jupyter-notebook:paste-cell-replace' ) ; } ) . removeAttr ( "aria-label" ) ;
1625
+ 'jupyter-notebook:paste-cell-replace' ) ; } )
1626
+ $ ( '.paste_replace' ) . removeAttr ( "aria-disabled" ) ;
1626
1627
$ ( '#paste_cell_above' ) . removeClass ( 'disabled' )
1627
1628
. on ( 'click' , function ( ) { that . keyboard_manager . actions . call (
1628
- 'jupyter-notebook:paste-cell-above' ) ; } ) . removeAttr ( "aria-label" ) ;
1629
+ 'jupyter-notebook:paste-cell-above' ) ; } ) ;
1630
+ $ ( '.paste_above' ) . removeAttr ( "aria-disabled" ) ;
1629
1631
$ ( '#paste_cell_below' ) . removeClass ( 'disabled' )
1630
1632
. on ( 'click' , function ( ) { that . keyboard_manager . actions . call (
1631
- 'jupyter-notebook:paste-cell-below' ) ; } ) . removeAttr ( "aria-label" ) ;
1633
+ 'jupyter-notebook:paste-cell-below' ) ; } ) ;
1634
+ $ ( '.paste_below' ) . removeAttr ( "aria-disabled" ) ;
1632
1635
this . paste_enabled = true ;
1633
1636
}
1634
1637
} ;
@@ -1938,7 +1941,8 @@ define([
1938
1941
*/
1939
1942
Notebook . prototype . enable_attachments_paste = function ( ) {
1940
1943
if ( ! this . paste_attachments_enabled ) {
1941
- $ ( '#paste_cell_attachments' ) . removeClass ( 'disabled' ) . removeAttr ( "aria-label" ) ;
1944
+ $ ( '#paste_cell_attachments' ) . removeClass ( 'disabled' ) ;
1945
+ $ ( '.paste_attachments' ) . removeAttr ( "aria-disabled" ) ;
1942
1946
this . paste_attachments_enabled = true ;
1943
1947
}
1944
1948
} ;
@@ -1948,7 +1952,8 @@ define([
1948
1952
*/
1949
1953
Notebook . prototype . set_insert_image_enabled = function ( enabled ) {
1950
1954
if ( enabled ) {
1951
- $ ( '#insert_image' ) . removeClass ( 'disabled' ) . removeAttr ( "aria-label" ) ;
1955
+ $ ( '#insert_image' ) . removeClass ( 'disabled' ) ;
1956
+ $ ( '.image_link' ) . removeAttr ( "aria-disabled" ) ;
1952
1957
} else {
1953
1958
$ ( '#insert_image' ) . addClass ( 'disabled' ) ;
1954
1959
}
0 commit comments