ca53e721ab
* Reorder ULS and Echo links * Rename conditional module load hook to be more generic, and add ULS module * Remove .active bolding from dropdown Change-Id: I7e746e7c5af8ffd7c4ca06742ab1fe6bc94ba531
22 lines
498 B
JavaScript
22 lines
498 B
JavaScript
$( function () {
|
|
var mobileCutoffWidth = 850,
|
|
ULSTrigger = $( '#pt-uls' ),
|
|
ULSMoved = false;
|
|
|
|
function moveULS() {
|
|
if ( ULSTrigger.length ) {
|
|
if ( !ULSMoved && $( window ).width() <= mobileCutoffWidth ) {
|
|
ULSTrigger.insertBefore( $( '#pt-preferences' ) );
|
|
|
|
ULSMoved = true;
|
|
} else if ( ULSMoved && $( window ).width() > mobileCutoffWidth ) {
|
|
ULSTrigger.prepend( $( '#p-preferences' ) );
|
|
|
|
ULSMoved = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
$( window ).resize( moveULS );
|
|
moveULS();
|
|
} );
|