make 'View with Timelines' work
This commit is contained in:
parent
3bff9d1fb9
commit
279d580e51
2 changed files with 5 additions and 5 deletions
|
@ -193,15 +193,15 @@ pandora.ui.infoView = function(data) {
|
||||||
)
|
)
|
||||||
.appendTo($text);
|
.appendTo($text);
|
||||||
|
|
||||||
// fixme: creator seems to be always missing
|
// fixme: episodeDirector seems to be always missing
|
||||||
if (data.creator || data.writer || data.producer || data.cinematographer || data.editor) {
|
if (data.episodeDirector || data.writer || data.producer || data.cinematographer || data.editor) {
|
||||||
$div = $('<div>')
|
$div = $('<div>')
|
||||||
.css(css)
|
.css(css)
|
||||||
.appendTo($text);
|
.appendTo($text);
|
||||||
html = [];
|
html = [];
|
||||||
['creator', 'writer', 'producer', 'cinematographer', 'editor'].forEach(function(key) {
|
['episode_director', 'writer', 'producer', 'cinematographer', 'editor'].forEach(function(key) {
|
||||||
data[key] && html.push(
|
data[key] && html.push(
|
||||||
formatKey(key) + formatValue(data[key], 'name')
|
formatKey(key == 'episodeDirector' ? 'director' : key) + formatValue(data[key], 'name')
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
$div.html(html.join('; '));
|
$div.html(html.join('; '));
|
||||||
|
|
|
@ -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);
|
pandora.enableDragAndDrop(that, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue