Config.html is actually usable

This commit is contained in:
Anders Betnér 2006-05-22 22:26:19 +00:00
parent dbf2359c89
commit 510fbde5b8
2 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,7 @@ configuration file itself is writable by the mt-daapd server. If you
make changes to these settings, they will not be reflected in the make changes to these settings, they will not be reflected in the
running server. The server must be restarted for these values to running server. The server must be restarted for these values to
take effect.--> take effect.-->
This is work in progress. no changes saved, some fields not updated, some not even in mt-daapd.conf</p> This is still in beta, but it seems to work. Go ahead and give it a spin.</p>
<div id="config_not_writable_warning" style="display: none;">Your config file is not writable, you can not change anything using this webpage</div> <div id="config_not_writable_warning" style="display: none;">Your config file is not writable, you can not change anything using this webpage</div>
<form id="theform" method="get" action="#"> <form id="theform" method="get" action="#">
</form> </form>

View File

@ -357,6 +357,8 @@ function saveForm() {
}); });
} }
function cancelForm() { function cancelForm() {
alert("Cancel doesn't work, reload the page to revert your changes");
return;
ConfigXML.getSections().each(function (section){ ConfigXML.getSections().each(function (section){
ConfigXML.getItems(section).each(function (itemId) { ConfigXML.getItems(section).each(function (itemId) {
var item = ConfigXML.getOption(section,itemId); var item = ConfigXML.getOption(section,itemId);