function MediaManagerBase(options) {
this._options = Core.extend({
dialogTitle: Language.get('wcf.media.manager'),
- fileTypeFilters: {}
+ fileTypeFilters: {},
+ minSearchLength: 3
}, options);
this._media = new Dictionary();
var innerInfo = DomTraverse.childByClass(this._input.parentNode.parentNode, 'innerInfo');
- // TODO: threshold option?
- if (this._input.value.length >= 3) {
+ if (this._input.value.length >= this._mediaManager.getOption('minSearchLength')) {
if (innerInfo) {
elHide(innerInfo);
}