added force save button for #17
This commit is contained in:
parent
711a700d47
commit
30adcfbbec
1 changed files with 34 additions and 1 deletions
35
server.html
35
server.html
|
@ -293,6 +293,8 @@ label span
|
||||||
#editserver
|
#editserver
|
||||||
{
|
{
|
||||||
width: 400px;
|
width: 400px;
|
||||||
|
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -317,7 +319,7 @@ p,
|
||||||
label,
|
label,
|
||||||
#page label input,
|
#page label input,
|
||||||
#page > button,
|
#page > button,
|
||||||
#editserver > button
|
#editserver > button, #forcesave > button
|
||||||
{
|
{
|
||||||
font: normal bold 11pt Arial, sans-serif;
|
font: normal bold 11pt Arial, sans-serif;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
@ -371,6 +373,19 @@ td
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#forcesave
|
||||||
|
{
|
||||||
|
width: 400px;
|
||||||
|
float: left;
|
||||||
|
margin: 0 0 0 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#forcesave button
|
||||||
|
{
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
@ -863,6 +878,24 @@ td
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
var forcesave = $('<div>').attr('id', 'forcesave');
|
||||||
|
|
||||||
|
forcesave.append(
|
||||||
|
$('<p>').text('Click the button below to force a settings save. This will permanently save all changes to the config file.')
|
||||||
|
).append(
|
||||||
|
$('<button>').click(function()
|
||||||
|
{
|
||||||
|
if(confirmDelete('Are you sure you want to force a JSON save?') == true)
|
||||||
|
{
|
||||||
|
console.log('magie hier!'); // TODO FIXME
|
||||||
|
}
|
||||||
|
}).text( 'force save to JSON file' )
|
||||||
|
);
|
||||||
|
|
||||||
|
$('#page').append(forcesave);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue