add title

This commit is contained in:
j 2011-10-20 22:13:47 +02:00
parent a434b83d69
commit b9c96f2a5e
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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) {