fix stuff
This commit is contained in:
parent
b28087d8e7
commit
a620a8e384
2 changed files with 5 additions and 18 deletions
|
|
@ -28,7 +28,7 @@ pandora.ui.infoView = function(data) {
|
|||
}).map(function(key){
|
||||
return key.id;
|
||||
}),
|
||||
posterKeys = nameKeys.concat(['title', 'year']),
|
||||
posterKeys = nameKeys.concat(['title', 'date']),
|
||||
statisticsWidth = 128,
|
||||
|
||||
$bar = Ox.Bar({size: 16})
|
||||
|
|
@ -223,10 +223,9 @@ pandora.ui.infoView = function(data) {
|
|||
)
|
||||
.appendTo($text);
|
||||
|
||||
// Director, Year and Country ----------------------------------------------
|
||||
|
||||
renderGroup(['director', 'year', 'country', 'runtime', 'format']);
|
||||
// Director, Date and Country ----------------------------------------------
|
||||
|
||||
renderGroup(['director', 'date', 'country']);
|
||||
|
||||
// Summary -----------------------------------------------------------------
|
||||
|
||||
|
|
@ -262,12 +261,6 @@ pandora.ui.infoView = function(data) {
|
|||
.appendTo($text);
|
||||
}
|
||||
|
||||
$('<div>')
|
||||
.addClass('OxSelectable')
|
||||
.css(css)
|
||||
.html('<a target="blank" href="http://www.cinenova.org/filmdetail.php?filmId=' + data.cinenova + '">cinenova.org</a>')
|
||||
.appendTo($text);
|
||||
|
||||
// Duration, Aspect Ratio --------------------------------------------------
|
||||
|
||||
['duration', 'aspectratio'].forEach(function(key) {
|
||||
|
|
@ -430,12 +423,6 @@ pandora.ui.infoView = function(data) {
|
|||
var ret;
|
||||
if (key == 'year') {
|
||||
ret = formatLink(value, 'year');
|
||||
} else if (key == 'runtime') {
|
||||
if(value < 60) {
|
||||
ret = Math.round(data[key]) + ' sec';
|
||||
} else {
|
||||
ret = Math.round(data[key] / 60) + ' min';
|
||||
}
|
||||
} else if (nameKeys.indexOf(key) > -1) {
|
||||
ret = formatLink(value.split(', '), 'name');
|
||||
} else if (listKeys.indexOf(key) > -1) {
|
||||
Loading…
Add table
Add a link
Reference in a new issue