handle negative video selection span passed in url

This commit is contained in:
rolux 2011-11-03 01:09:59 +00:00
parent 2748ab6978
commit 6bb51eabdb
2 changed files with 2 additions and 4 deletions

View file

@ -185,7 +185,7 @@ pandora.URL = (function() {
set['videoPoints.' + state.item] = {
position: state.span[0],
'in': state.span[1] || 0,
out: state.span[2] || 0
out: Math.max(state.span[1] || 0, state.span[2] || 0)
}
} else if (state.view == 'map') {
// fixme: this doesn't handle map coordinates

View file

@ -87,9 +87,7 @@ pandora.ui.logsDialog = function() {
id: 'text',
title: 'Text',
tooltip: function(data) {
return $('<code>').append(
$('<pre>').html(data.text.replace(/\n\n/g, '<br/>'))
);
return $('<code>').append($('<pre>').append(data.text));
},
visible: true,
width: 640