X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=mw-config%2Fconfig.js;h=6f899f83cdef07d32cc43c92f07137f42d36f2df;hp=521072e9cc73894757bc85edfd8f6b50bd4ed511;hb=dfec83932fd38a9086eb5a2e212889ad00f35b0e;hpb=747bdd543d301e0816aa811806c6cc6b17ec1038 diff --git a/mw-config/config.js b/mw-config/config.js index 521072e9cc..6f899f83cd 100644 --- a/mw-config/config.js +++ b/mw-config/config.js @@ -14,17 +14,6 @@ $label.text( labelText.replace( '$1', value ) ); } - // Set up the help system - $( '.config-help-field-data' ).hide() - .closest( '.config-help-field-container' ).find( '.config-help-field-hint' ) - .show() - .on( 'click', function () { - // FIXME: Use CSS transition - // eslint-disable-next-line no-jquery/no-slide - $( this ).closest( '.config-help-field-container' ).find( '.config-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 () { @@ -34,6 +23,7 @@ $( '.dbRadio' ).on( 'click', function () { var $checked = $( '.dbRadio:checked' ), $wrapper = $( document.getElementById( $checked.attr( 'rel' ) ) ); + // eslint-disable-next-line no-jquery/no-sizzle if ( $wrapper.is( ':hidden' ) ) { // FIXME: Use CSS transition // eslint-disable-next-line no-jquery/no-animate-toggle