menu: {
filterFromInput: false
},
+ placeholder: mw.msg( 'mw-widgets-categoryselector-add-category-placeholder' ),
// This allows the user to both select non-existent categories, and prevents the selector from
// being wiped from #onMenuItemsChange when we change the available options in the dropdown
allowArbitrary: true
prop: 'categories',
cllimit: this.limit,
titles: 'Category:' + input
- } ).done( function ( res ) {
+ } ).done( function ( res ) {
var categories = [];
$.each( res.query.pages, function ( index, page ) {