Compare commits
2 commits
a4d0830e4b
...
098811d383
| Author | SHA1 | Date | |
|---|---|---|---|
| 098811d383 | |||
| 41d417e2a1 |
2 changed files with 4 additions and 1 deletions
|
|
@ -948,9 +948,11 @@ def timeline(request, id, size, position=-1, format='jpg', mode=None):
|
|||
if not item.access(request.user):
|
||||
return HttpResponseForbidden()
|
||||
|
||||
modes = [t['id'] for t in settings.CONFIG['timelines']]
|
||||
if not mode:
|
||||
mode = 'antialias'
|
||||
modes = [t['id'] for t in settings.CONFIG['timelines']]
|
||||
if mode not in modes:
|
||||
mode = modes[0]
|
||||
if mode not in modes:
|
||||
raise Http404
|
||||
modes.pop(modes.index(mode))
|
||||
|
|
|
|||
|
|
@ -559,6 +559,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
|||
$('<span>').html(formatKey(key)).appendTo($element);
|
||||
Ox.EditableContent({
|
||||
clickLink: pandora.clickLink,
|
||||
editable: canEdit,
|
||||
format: function(value) {
|
||||
return formatValue(key, value);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue