מדיה ויקי:Common.js: הבדלים בין גרסאות בדף

ככה?
יותר פשוט, וכולן שמחות.
שורה 231: שורה 231:
// if paramvalidator wrappers are visible, add "close" button, make them close on click, and tile them.
// if paramvalidator wrappers are visible, add "close" button, make them close on click, and tile them.
mw.hook( 'wikipage.content' ).add( function( content ) {
mw.hook( 'wikipage.content' ).add( function( content ) {
var pushdown = 0;
$( '.paramvalidator-wrapper:visible',  content )
$( '.paramvalidator-wrapper:visible',  content )
.prepend( $( '<input>', { 'type': 'button' } ).val( 'סגור' ) )
.prepend( $( '<input>', { 'type': 'button' } ).val( 'סגור' ) )
.click( function() { var $this = $( this ); $this.slideUp( "slow", function() { $this.remove(); } ); } )
.click( function() {  
.each( function() {
var $this = $( this );  
var $t = $( this ),
$this.slideUp( "slow", function() { $this.remove();
top = $t.css( 'top' ),
} );  
height = $t.height();
} );
$t.css( 'top', parseInt( top ) + pushdown );
pushdown += height + 8;
} );
} );
} );