.find( '.mw-help-field-data' )
.slideToggle( 'fast' );
} );
-
+
// Show/hide code for DB-specific options
// FIXME: Do we want slow, fast, or even non-animated (instantaneous) showing/hiding here?
$( '.dbRadio' ).each( function () {
$wrapper.show( 'slow' );
}
} );
-
+
// Scroll to the bottom of upgrade log
$( '#config-live-log' ).children( 'textarea' ).each( function () {
this.scrollTop = this.scrollHeight;
} );
-
+
// Show/hide Creative Commons thingy
$( '.licenseRadio' ).click( function () {
var $wrapper = $( '#config-cc-wrapper' );
$wrapper.hide( 'slow' );
}
} );
-
+
// Show/hide random stuff (email, upload)
$( '.showHideRadio' ).click( function () {
var $wrapper = $( '#' + $(this).attr( 'rel' ) );
$textbox.prop( 'readonly', true ).closest( '.config-block' ).slideUp( 'fast' );
}
} );
-
+
// Synchronize radio button label for sitename with textbox
$label = $( 'label[for=config__NamespaceType_site-name]' );
labelText = $label.text();
// Show/Hide memcached servers when needed
$( 'input[name$="config_wgMainCacheType"]' ).change( function () {
- var $memc = $( "#config-memcachewrapper" );
+ var $memc = $( '#config-memcachewrapper' );
if( $( 'input[name$="config_wgMainCacheType"]:checked' ).val() === 'memcached' ) {
$memc.show( 'slow' );
} else {