מדיה ויקי:Common.js: הבדלים בין גרסאות בדף
מ אין צורך |
מזנון |
||
| שורה 219: | שורה 219: | ||
); | ); | ||
} ); | } ); | ||
// add key to align references topic preview edit to left | |||
mw.hook( 'wikipage.content' ).add(function( $content ) { | |||
if ( !$( 'input[name=wpSection]' ).val() ) return; | |||
$( 'ol.references', $content ).filter(function(){return !$(this).data('left-button'); }).before( | |||
$( '<input>', { type: 'button', title: 'הצג הערות מיושרות לשמאל' } ) | |||
.val( 'הדבק הערות לשמאל' ) | |||
.click( function() { $( this ).next( 'ol.references' ).css( { direction: 'ltr' } ); } ) | |||
).data('left-button', 1); | |||
}); | |||