make 'View with Timelines' work

This commit is contained in:
rolux 2011-10-16 12:29:04 +00:00
parent 3bff9d1fb9
commit 279d580e51
2 changed files with 5 additions and 5 deletions

View file

@ -193,15 +193,15 @@ pandora.ui.infoView = function(data) {
)
.appendTo($text);
// fixme: creator seems to be always missing
if (data.creator || data.writer || data.producer || data.cinematographer || data.editor) {
// fixme: episodeDirector seems to be always missing
if (data.episodeDirector || data.writer || data.producer || data.cinematographer || data.editor) {
$div = $('<div>')
.css(css)
.appendTo($text);
html = [];
['creator', 'writer', 'producer', 'cinematographer', 'editor'].forEach(function(key) {
['episode_director', 'writer', 'producer', 'cinematographer', 'editor'].forEach(function(key) {
data[key] && html.push(
formatKey(key) + formatValue(data[key], 'name')
formatKey(key == 'episodeDirector' ? 'director' : key) + formatValue(data[key], 'name')
);
});
$div.html(html.join('; '));

View file

@ -248,7 +248,7 @@ pandora.ui.list = function() {
});
}
if (['list', 'grid'].indexOf(view) > -1) {
if (['list', 'grid', 'timelines'].indexOf(view) > -1) {
pandora.enableDragAndDrop(that, true);