Compare commits
No commits in common. "475a784da55200eba89dd48aaf256c85a1676942" and "6b96c9b3eea2ff5107fb632f847850b659638352" have entirely different histories.
475a784da5
...
6b96c9b3ee
3 changed files with 0 additions and 26 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue