User:TeaLover1996/common.js: Difference between revisions

Content deleted Content added
TeaLover1996 (talk | contribs)
No edit summary
m Maintenance: Global identifier "$j" has been deprecated mw:ResourceLoader/Migration_guide_(users)#MediaWiki_1.17
 
(2 intermediate revisions by one other user not shown)
Line 303:
}
 
if( typeof $j != 'undefined' ) {
$('#p-newpages > h3').keydown( function( event ) {
if ( event.which == 13 /* Enter */ || event.which == 32 /* Space */ ) {
Line 386:
}
 
if( typeof $j != 'undefined' ) {
$('#p-newpages > h5').keydown( function( event ) {
if ( event.which == 13 /* Enter */ || event.which == 32 /* Space */ ) {
Line 403:
 
function npp_toggle( $element ) {
$j.cookie( 'vector-nav-' + $element.parent().attr( 'id' ), $element.parent().is( '.collapsed' ) );
if( $element.parent().is('.collapsed') ) {
npp_enable_box();