« MediaWiki:Common.js » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
$( function ($) { | |||
/** | |||
* Rétablit l'accès clavier à la fonction de tri des tableaux | |||
*/ | |||
$( '.sortable th' ).attr( 'tabindex', 0 ).keypress( function( event ) { | |||
if ( event.which == 13 ) { | |||
if ( | $( this ).click(); | ||
} | |||
} | } ); | ||
} ); | |||
Version du 12 septembre 2015 à 20:26
$( function ($) {
/**
* Rétablit l'accès clavier à la fonction de tri des tableaux
*/
$( '.sortable th' ).attr( 'tabindex', 0 ).keypress( function( event ) {
if ( event.which == 13 ) {
$( this ).click();
}
} );
} );