מדיה ויקי: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 ) { | ||
$( '.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() { | ||
var $this = $( this ); | |||
$this.slideUp( "slow", function() { $this.remove(); | |||
} ); | |||
} ); | |||
} ); | } ); | ||