LSP - redraw preview page, dont add

LSP fix the bug caused by the previous fix..
This commit is contained in:
cat 2014-04-04 12:02:14 +02:00 committed by Thulinma
parent e4f5ba219f
commit 3b7025019f
2 changed files with 11 additions and 2 deletions

View file

@ -1298,7 +1298,7 @@ function buildstreamembed(streamName,embedbase) {
return $(this).text() == streamName; return $(this).text() == streamName;
}).addClass('current'); }).addClass('current');
$('#subpage').append( $('#subpage').html(
$('<div>').addClass('input_container').html( $('<div>').addClass('input_container').html(
$('<label>').text('The info embed URL is:').append( $('<label>').text('The info embed URL is:').append(
$('<input>').attr('type','text').attr('readonly','readonly').val(embedbase+'info_'+streamName+'.js') $('<input>').attr('type','text').attr('readonly','readonly').val(embedbase+'info_'+streamName+'.js')

View file

@ -603,6 +603,15 @@ function showTab(tabName,streamName) {
$('<td>').text('Live') $('<td>').text('Live')
) )
); );
if (meta.buffer_window) {
$meta.append(
$('<tr>').html(
$('<td>').text('Buffer window:')
).append(
$('<td>').text(meta.buffer_window+' ms')
)
);
}
} }
else { else {
$meta.html( $meta.html(
@ -737,7 +746,7 @@ function showTab(tabName,streamName) {
} }
$('#liststreams').append( $('#liststreams').append(
$('<div>').addClass('button').text(settings.settings.streams[s].name).click(function(){ $('<div>').addClass('button').text(settings.settings.streams[s].name).click(function(){
buildstreamembed($(this).text()); buildstreamembed($(this).text(),embedbase);
}) })
); );
} }