pass autocomplete function to editor view

This commit is contained in:
rolux 2014-12-16 13:00:23 +00:00
parent 0f3a0e1eb3
commit f3c0f8d76a

View file

@ -15,6 +15,15 @@ pandora.ui.editor = function(data) {
annotationsTooltip: Ox._('annotations')
+ ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'A</span>',
audioTrack: data.audioTrack,
autocomplete: function(key, value, callback) {
pandora.api.autocompleteEntity({
key: key,
operator: '=',
value: value
}, function(result) {
callback(result.data.items);
})
},
censored: data.censored,
censoredIcon: pandora.site.cantPlay.icon,
censoredTooltip: Ox._(pandora.site.cantPlay.text),