equal
deleted
inserted
replaced
386 |
386 |
387 this.$search.val( '' ).trigger( 'input' ); |
387 this.$search.val( '' ).trigger( 'input' ); |
388 }, |
388 }, |
389 |
389 |
390 /** |
390 /** |
391 * Adds keyboard accessiblity to the panel. |
391 * Adds keyboard accessibility to the panel. |
392 */ |
392 */ |
393 keyboardAccessible: function( event ) { |
393 keyboardAccessible: function( event ) { |
394 var isEnter = ( event.which === 13 ), |
394 var isEnter = ( event.which === 13 ), |
395 isEsc = ( event.which === 27 ), |
395 isEsc = ( event.which === 27 ), |
396 isDown = ( event.which === 40 ), |
396 isDown = ( event.which === 40 ), |
1621 var panelMetaContainer, noticeContainer, updateNotice, getActiveSectionCount, shouldShowNotice; |
1621 var panelMetaContainer, noticeContainer, updateNotice, getActiveSectionCount, shouldShowNotice; |
1622 panelMetaContainer = panel.container.find( '.panel-meta' ); |
1622 panelMetaContainer = panel.container.find( '.panel-meta' ); |
1623 |
1623 |
1624 // @todo This should use the Notifications API introduced to panels. See <https://core.trac.wordpress.org/ticket/38794>. |
1624 // @todo This should use the Notifications API introduced to panels. See <https://core.trac.wordpress.org/ticket/38794>. |
1625 noticeContainer = $( '<div></div>', { |
1625 noticeContainer = $( '<div></div>', { |
1626 'class': 'no-widget-areas-rendered-notice' |
1626 'class': 'no-widget-areas-rendered-notice', |
|
1627 'role': 'alert' |
1627 }); |
1628 }); |
1628 panelMetaContainer.append( noticeContainer ); |
1629 panelMetaContainer.append( noticeContainer ); |
1629 |
1630 |
1630 /** |
1631 /** |
1631 * Get the number of active sections in the panel. |
1632 * Get the number of active sections in the panel. |