home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
WebMediaPortl x64 with IISExpress 10
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BCEly" data-source="post: 1301046" data-attributes="member: 171853"><p>I think it's a JQuery / Bootleg 2.3.2 issue - when the href target is '#'.</p><p></p><p>I have made a change to the Recording\Details page so that the duration is actually correct. As stands in .255, it reports the mins but ignores the hours so a show that is 1 hour, 15 mins only shows as 15 mins - With my new code I take the Unix Timestamps of the start and end and calculate the minutes correctly.</p><p></p><p>Code was;</p><p>[CODE=csharp]<dt>Duration:</dt></p><p><dd>@(String.Format("{0:mm}", (Model.EndTime - Model.StartTime))) min.</dd>[/CODE]</p><p></p><p>but it's now...</p><p></p><p>[CODE=csharp]@{</p><p> DateTimeOffset dtos = new DateTimeOffset(Model.StartTime);</p><p> DateTimeOffset dtoe = new DateTimeOffset(Model.EndTime);</p><p> var mins = (dtoe.ToUnixTimeSeconds() - dtos.ToUnixTimeSeconds()) / 60;</p><p>} </p><p><dt>Duration:</dt> </p><p>@if (mins == 1)</p><p>{</p><p> <dd>@mins min</dd></p><p>}</p><p>else</p><p>{</p><p> <dd>@mins mins</dd></p><p>}[/CODE]</p><p></p><p>I've removed the button group on the Status page which change the 'Refresh Rate' as I felt it wasn't really something I needed.</p><p></p><p>Finally, I've Changed the 'Expand Groups' button on the Recordings page so it toggles between 'Expand Groups' and 'Collapse Groups' when active/deactive.</p><p></p><p>Code was;</p><p></p><p>[CODE=javascript]$('#groupbutton').click(function() {</p><p> //wordt uitgezet</p><p> if($(this).hasClass('active')) {</p><p> $('#grouplist ul.group').hide();</p><p> $('#grouplist li').removeClass("open");</p><p> }else {</p><p> $('#grouplist ul.group').fadeIn();</p><p> $('#grouplist li').addClass("open");</p><p> forceImageLoading('#grouplist ul.group');</p><p> }</p><p>});[/CODE]</p><p></p><p>but it's now...</p><p></p><p>[CODE=javascript]$('#groupbutton').click(function() {</p><p> //wordt uitgezet</p><p> if($(this).hasClass('active')) {</p><p> $(this).html('Expand Groups');</p><p> $('#grouplist ul.group').hide();</p><p> $('#grouplist li').removeClass('open');</p><p> } else {</p><p> $(this).html('Collapse Groups');</p><p> $('#grouplist ul.group').fadeIn();</p><p> $('#grouplist li').addClass('open');</p><p> forceImageLoading('#grouplist ul.group');</p><p> }</p><p>});[/CODE]</p></blockquote><p></p>
[QUOTE="BCEly, post: 1301046, member: 171853"] I think it's a JQuery / Bootleg 2.3.2 issue - when the href target is '#'. I have made a change to the Recording\Details page so that the duration is actually correct. As stands in .255, it reports the mins but ignores the hours so a show that is 1 hour, 15 mins only shows as 15 mins - With my new code I take the Unix Timestamps of the start and end and calculate the minutes correctly. Code was; [CODE=csharp]<dt>Duration:</dt> <dd>@(String.Format("{0:mm}", (Model.EndTime - Model.StartTime))) min.</dd>[/CODE] but it's now... [CODE=csharp]@{ DateTimeOffset dtos = new DateTimeOffset(Model.StartTime); DateTimeOffset dtoe = new DateTimeOffset(Model.EndTime); var mins = (dtoe.ToUnixTimeSeconds() - dtos.ToUnixTimeSeconds()) / 60; } <dt>Duration:</dt> @if (mins == 1) { <dd>@mins min</dd> } else { <dd>@mins mins</dd> }[/CODE] I've removed the button group on the Status page which change the 'Refresh Rate' as I felt it wasn't really something I needed. Finally, I've Changed the 'Expand Groups' button on the Recordings page so it toggles between 'Expand Groups' and 'Collapse Groups' when active/deactive. Code was; [CODE=javascript]$('#groupbutton').click(function() { //wordt uitgezet if($(this).hasClass('active')) { $('#grouplist ul.group').hide(); $('#grouplist li').removeClass("open"); }else { $('#grouplist ul.group').fadeIn(); $('#grouplist li').addClass("open"); forceImageLoading('#grouplist ul.group'); } });[/CODE] but it's now... [CODE=javascript]$('#groupbutton').click(function() { //wordt uitgezet if($(this).hasClass('active')) { $(this).html('Expand Groups'); $('#grouplist ul.group').hide(); $('#grouplist li').removeClass('open'); } else { $(this).html('Collapse Groups'); $('#grouplist ul.group').fadeIn(); $('#grouplist li').addClass('open'); forceImageLoading('#grouplist ul.group'); } });[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
WebMediaPortl x64 with IISExpress 10
Contact us
RSS
Top
Bottom