מדיה ויקי:Gadget-validate-template-params.js: הבדלים בין גרסאות בדף
(ניסוי) |
(document as obsolete' and commented out all the code.) |
||
שורה 1: | שורה 1: | ||
/* | |||
not in use and not to be used. currently (June 2017), the relevant piece is in Mediawiki:common.js . | |||
left here for historical reasons. | |||
commented out on June 2017. | |||
$( function() { | $( function() { | ||
$( '.error.parameters' ).css( 'float', 'left' ); | $( '.error.parameters' ).css( 'float', 'left' ); | ||
שורה 27: | שורה 35: | ||
} ); | } ); | ||
} ); | } ); | ||
*/ |
גרסה מ־17:42, 24 ביוני 2017
/*
not in use and not to be used. currently (June 2017), the relevant piece is in Mediawiki:common.js .
left here for historical reasons.
commented out on June 2017.
$( function() {
$( '.error.parameters' ).css( 'float', 'left' );
$( '.paramvalidator-wrapper' ).prependTo( mw.util.$content );
$( '.paramvalidator-wrapper, .error.parameters' )
.each( function() {
if ( $.trim( $( this ).text() ).length )
$( this ).prepend(
$( '<p>' )
.css( { 'background-color': 'lightblue', padding: '5px', 'min-height': '1.4em' } )
.append( $('<span>')
.css( { 'float': 'left', border: 'solid grey 1px', 'font-weight': 'bold', padding: '0 4px', cursor: 'pointer' } )
.text( 'X' )
.click( function() {
$( this ).closest( '.paramvalidator-wrapper, .error.parameters' )
.remove();
} )
)
.append( $('<span>')
.css( { 'float': 'left', border: 'solid grey 1px', 'font-weight': 'bold', padding: '0 4px', cursor: 'pointer' } )
.text( 'XX' )
.click( function() {
$( '.paramvalidator-wrapper, .error.parameters' )
.remove();
} )
)
);
} );
} );
*/