From ec3727851412f5f534035aebff3eb4ba32cd82f3 Mon Sep 17 00:00:00 2001 From: Techywarrior Date: Tue, 26 Mar 2013 22:36:41 -0700 Subject: [PATCH] re-organized media info details, added hover effect to gallery images --- dashboard-ui/scripts/Itemdetailpage.js | 42 ++++++++++++-------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index df5027f233..261f5a7505 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -416,6 +416,7 @@ if (typeof (index) == "undefined") index = 0; + html += '
'; html += ''; html += ''; + html += '
'; + html += '
'; html += 'Close'; html += 'Type'; html += 'Codec'; html += 'Language'; - html += 'Misc'; - html += 'Bitrate'; - html += 'Notes'; + html += 'Resolution'; + html += 'Channels'; + html += 'Bitrate'; + html += 'Framerate'; + html += 'Flags'; html += ''; html += ''; @@ -476,14 +481,12 @@ if (stream.Type == "Video") { html += ''+ stream.Width +' '+ stream.Height +' ('+ stream.AspectRatio +')'; - }else if (stream.Type == "Audio") { + }else { + html += ''; + } + + if (stream.Channels) { html += ''+ stream.Channels +'ch '+ stream.SampleRate +''; - }else if (stream.Type == "Subtitle") { - if (stream.IsExternal) { - html += 'external file'; - }else { - html += ''; - } }else { html += ''; } @@ -493,22 +496,17 @@ if (stream.Type == "Video") { var framerate = stream.AverageFrameRate || stream.RealFrameRate; html += ''+ framerate +''; - }else if (stream.Type == "Audio") { - var notes = new Array(); - if (stream.IsDefault) notes.push("Default"); - if (stream.IsForced) notes.push("Forced"); - - html += '' + notes.join(', ') + ''; - }else if (stream.Type == "Subtitle") { - var notes = new Array(); - if (stream.IsDefault) notes.push("Default"); - if (stream.IsForced) notes.push("Forced"); - - html += '' + notes.join(', ') + ''; }else { html += ''; } + var notes = new Array(); + if (stream.IsExternal) notes.push("external file"); + if (stream.IsDefault) notes.push("Default"); + if (stream.IsForced) notes.push("Forced"); + + html += '' + notes.join(', ') + ''; + html += ''; }