added force save button for #17

This commit is contained in:
That-Guy 2012-04-21 13:14:53 +02:00
parent 711a700d47
commit 30adcfbbec

View file

@ -293,6 +293,8 @@ label span
#editserver
{
width: 400px;
float: left;
}
@ -317,7 +319,7 @@ p,
label,
#page label input,
#page > button,
#editserver > button
#editserver > button, #forcesave > button
{
font: normal bold 11pt Arial, sans-serif;
text-transform: uppercase;
@ -371,6 +373,19 @@ td
}
#forcesave
{
width: 400px;
float: left;
margin: 0 0 0 100px;
}
#forcesave button
{
float: right;
}
</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;