מדיה ויקי:Gadget-Dwim.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
if ( mw.user.options.get( 'skin' ) === 'vector' | mw.loader.using(['mediawiki.util', 'mediawiki.user']).done( function() { | ||
if ( mw.user.options.get( 'skin' ) === 'vector' ) { | |||
'use strict'; | 'use strict'; | ||
| שורה 20: | שורה 20: | ||
fetch: function( query ) { | fetch: function( query ) { | ||
var $this = $( this ), | var $this = $( this ), | ||
apiUrl = | apiUrl = mw.util.wikiScript( 'api' ); | ||
if ( query.length !== 0 ) { | if ( query.length !== 0 ) { | ||
| שורה 70: | שורה 70: | ||
} ); | } ); | ||
}, 1200 ); // setTimeout | }, 1200 ); // setTimeout | ||
} ); | } | ||
} ); | |||