forked from 0x2620/pandora
add title
This commit is contained in:
parent
a434b83d69
commit
b9c96f2a5e
2 changed files with 2 additions and 2 deletions
|
@ -387,7 +387,7 @@ class Item(models.Model):
|
|||
layers = {}
|
||||
for l in Layer.objects.all():
|
||||
ll = layers.setdefault(l.name, [])
|
||||
qs = Annotation.objects.filter(layer=l, item=self).select_related()
|
||||
qs = Annotation.objects.filter(layer=l, item=self)
|
||||
if l.name == 'subtitles':
|
||||
qs = qs.exclude(value='')
|
||||
if l.private:
|
||||
|
|
|
@ -7,7 +7,7 @@ pandora.ui.item = function() {
|
|||
pandora.api.get({
|
||||
id: pandora.user.ui.item,
|
||||
keys: ['video', 'timeline'].indexOf(pandora.user.ui.itemView)>-1 ?
|
||||
['rendered', 'cuts', 'videoRatio', 'duration', 'layers', 'parts', 'size'] : []
|
||||
[ 'cuts', 'duration', 'layers', 'parts', 'rendered', 'size', 'title', 'videoRatio'] : []
|
||||
}, pandora.user.level == 'admin' && pandora.user.ui.itemView == 'info' ? 0 : -1, function(result) {
|
||||
|
||||
if (result.status.code == 200) {
|
||||
|
|
Loading…
Reference in a new issue