new text for force save button and preps for new protocol interface, #17

This commit is contained in:
That-Guy 2012-04-21 13:27:33 +02:00
parent 30adcfbbec
commit 63af4b17c3

View file

@ -881,7 +881,7 @@ td
var forcesave = $('<div>').attr('id', 'forcesave'); var forcesave = $('<div>').attr('id', 'forcesave');
forcesave.append( forcesave.append(
$('<p>').text('Click the button below to force a settings save. This will permanently save all changes to the config file.') $('<p>').text('Click the button below to force an immediate settings save. This differs from a regular save to memory and file save on exit by saving directly to file while operating. This may slow server processes for a short period of time.')
).append( ).append(
$('<button>').click(function() $('<button>').click(function()
{ {
@ -904,7 +904,7 @@ td
case 'protocols': case 'protocols':
$table = $('<table>'); $table = $('<table>');
$table.html("<thead><th>Protocol</th><th>Port</th><th></th></thead>"); $table.html("<thead><th>Protocol</th><th>Port</th><th>Interface</th><th></th></thead>");
$tbody = $('<tbody>'); $tbody = $('<tbody>');
var tr, protocol; var tr, protocol;
@ -919,6 +919,8 @@ td
tr.append( $('<td>').text( protocol ) ); tr.append( $('<td>').text( protocol ) );
tr.append( $('<td>').text( settings.settings.config.protocols[protocol].port ) ); tr.append( $('<td>').text( settings.settings.config.protocols[protocol].port ) );
tr.append( $('<td>').text( '_' ) ); // interface
tr.append( $('<td>').attr('class', 'center').append( $('<button>').click(function() tr.append( $('<td>').attr('class', 'center').append( $('<button>').click(function()
{ {
if(confirmDelete('Are you sure you want to delete this protocol?') == true) if(confirmDelete('Are you sure you want to delete this protocol?') == true)
@ -945,6 +947,9 @@ td
// val // val
$nprot.append( $('<td>').append( $('<input>').attr('type', 'number').attr('id', 'new-protocol-val') ) ); $nprot.append( $('<td>').append( $('<input>').attr('type', 'number').attr('id', 'new-protocol-val') ) );
// interface
$nprot.append( $('<td>').append( $('<input>').attr('type', 'text').attr('id', 'new-protocol-interface') ) );
$nprot.append( $nprot.append(
$('<td>').attr('class', 'center').append( $('<td>').attr('class', 'center').append(
$('<button>').click(function() $('<button>').click(function()
@ -1235,6 +1240,8 @@ td
var url = settings.settings.streams[streamname].channel.URL; var url = settings.settings.streams[streamname].channel.URL;
// TODO FIXME
$('#page').append( $('<p>').text('This feature is not yet implemented.') ); $('#page').append( $('<p>').text('This feature is not yet implemented.') );
$('#page').append( $('<p>').text('The URL for this stream is ').append( $('<span>').attr('class', 'nocapitals').text(url) ) ); $('#page').append( $('<p>').text('The URL for this stream is ').append( $('<span>').attr('class', 'nocapitals').text(url) ) );