MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1,402: | Line 1,402: | ||
}); | }); | ||
/*-------------------new block----------------------*/ | |||
(function () { | |||
var oldAjax = $.ajax; | |||
$.ajax = function (options) { | |||
if ( | |||
options && | |||
options.url && | |||
options.url.indexOf('action=opensearch') !== -1 | |||
) { | |||
options.url = options.url.replace( | |||
/limit=10/g, | |||
'limit=50' | |||
); | |||
} | |||
return oldAjax.apply(this, arguments); | |||
}; | |||
})(); | |||