pass autocomplete callback with layer
This commit is contained in:
parent
28d8271174
commit
3c006f9bc5
2 changed files with 3 additions and 7 deletions
|
|
@ -330,7 +330,6 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
})
|
||||
.appendTo(self.$menubar);
|
||||
}
|
||||
|
||||
function renderFolder(layer) {
|
||||
var index = Ox.getIndexById(self.options.layers, layer.id),
|
||||
item = Ox.getObjectById(layer.items, self.options.selected),
|
||||
|
|
@ -350,9 +349,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
selected: selected,
|
||||
sort: self.options.sort,
|
||||
width: self.options.width - Ox.UI.SCROLLBAR_SIZE
|
||||
}, layer, layer.type == 'entity' ? {
|
||||
autocomplete: self.options.autocomplete,
|
||||
} : layer.type == 'event' ? {
|
||||
}, layer, layer.type == 'event' ? {
|
||||
showWidget: self.options.showCalendar,
|
||||
widgetSize: self.options.calendarSize
|
||||
} : layer.type == 'place' ? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue