icon: 'search',
maxLength: undefined,
performSearchOnClick: true,
- dataLocation: 'header'
+ dataLocation: 'header',
+ namespace: 0
}, config );
// Parent constructor
self = this;
// reuse the searchSuggest function from mw.searchSuggest
- promise = mw.searchSuggest.request( api, this.getQueryValue(), $.noop, this.limit );
+ promise = mw.searchSuggest.request( api, this.getQueryValue(), $.noop, this.limit, this.getNamespace() );
// tracking purposes
promise.done( function ( data, jqXHR ) {