diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index 90e97086..5b1b6434 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -594,7 +594,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "id": "keywords", "title": "Keywords", "type": "layer", - "autocomplete": true, "filter": true, "find": true }, diff --git a/pandora/edit/views.py b/pandora/edit/views.py index 57abed30..12d623c0 100644 --- a/pandora/edit/views.py +++ b/pandora/edit/views.py @@ -118,12 +118,6 @@ def editClip(request, data): clip.item = clip.annotation.item clip.annotation = None setattr(clip, {'in': 'start', 'out': 'end'}.get(key), float(data[key])) - if 'annotation' in data and not data['annotation']: - if clip.annotation: - clip.start = clip.annotation.start - clip.end = clip.annotation.end - clip.item = clip.annotation.item - clip.annotation = None if 'volume' in data: clip.volume = float(data['volume']) if not clip.annotation: diff --git a/static/js/filterForm.js b/static/js/filterForm.js index 483b82c8..7d145473 100644 --- a/static/js/filterForm.js +++ b/static/js/filterForm.js @@ -29,7 +29,6 @@ pandora.ui.filterForm = function(options) { if (key.format && key.format.type == 'ColorPercent') { key.format.type = 'percent'; } - key.autocomplete = autocompleteFunction(key) return key; }).concat([{ id: 'list', @@ -71,24 +70,6 @@ pandora.ui.filterForm = function(options) { that.getList = that.$filter.getList; that.value = that.$filter.value; }); - function autocompleteFunction(key) { - return key.autocomplete ? function(value, callback) { - pandora.api.autocomplete({ - key: key.id, - query: { - conditions: [], - operator: '&' - }, - range: [0, 100], - sort: key.autocompleteSort, - value: value - }, function(result) { - callback(result.data.items.map(function(item) { - return Ox.decodeHTMLEntities(item); - })); - }); - } : null; - } that.updateResults = function() { if (mode == 'list') { Ox.Request.clearCache(list.id);