מדיה ויקי:סקריפטים/88.js – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
מאין תקציר עריכה
טעינת 'jquery.ui.dialog' רק אם צריך, לבקשת משתמש:IKhitron
שורה 1:
mw.loader.using( ['mediawiki.api', 'jquery.ui.dialog', 'mediawiki.user'] , function() {
 
var api = new mw.Api( { cache: false } ),
שורה 28:
$.ajax( { url: mw.util.getUrl( 'Special:Watchlist' ) } )
.done( function( data ) {
mw.loader.using( 'jquery.ui.dialog' ).done (function() {
var content = $( data ).find( '.mw-changeslist' ),
cl = '';
cl = '';

content
.parents()
.each( function() {
if ( $( this ).length )
cl += $this.attr( 'class' ) + ' ';
} );
$( '<div>' )
.addClass( 'mw-changeslist ' + cl )
.dialog( {
position: {
my: "center top",
at: "center bottom",
of: $this
},
width: width60,
height: height60
} )
.css( { overflow: 'auto' } )
.append( content );
cl} = '');
} );
}