mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-09 04:38:10 -05:00
Put the daap options in the right mt-daapd.conf section.
Changed the config.html Save debugger to only print options that return errors.
This commit is contained in:
parent
62c3ac542a
commit
d9c1742744
@ -434,12 +434,15 @@ function saveForm() {
|
||||
getArr.push('key='+encodeURIComponent(a[1]));
|
||||
getArr.push('value='+encodeURIComponent(value));
|
||||
getArr.push('verify_only=1');
|
||||
var url = a[1] + '=' + value;
|
||||
var output = a[0] + ':' + a[1] + '=' + value;
|
||||
new Ajax.Request('/xml-rpc?method=setconfig&' + getArr.join('&'),
|
||||
{method: 'get',
|
||||
onComplete: function(req){console.log(url + ' => ' +
|
||||
Element.textContent(req.responseXML.getElementsByTagName('statusstring')[0]));
|
||||
} });
|
||||
onComplete: function(req){
|
||||
var errorString = Element.textContent(req.responseXML.getElementsByTagName('statusstring')[0]);
|
||||
if (errorString != 'Success') {
|
||||
console.log(output + ' => ' + errorString);
|
||||
}
|
||||
}});
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -202,8 +202,9 @@
|
||||
</options>
|
||||
</item>
|
||||
</section>
|
||||
|
||||
<section name="Daap">
|
||||
<item id="empty_strings" advanced="true" config_section="general">
|
||||
<item id="empty_strings" advanced="true" config_section="daap">
|
||||
<name>Empty strings</name>
|
||||
<short_description></short_description>
|
||||
<type default_value="0">select</type>
|
||||
@ -212,7 +213,7 @@
|
||||
<option value="1">Yes</option>
|
||||
</options>
|
||||
</item>
|
||||
<item id="supports_update" advanced="true" config_section="general">
|
||||
<item id="supports_update" advanced="true" config_section="daap">
|
||||
<name>Supports update</name>
|
||||
<short_description></short_description>
|
||||
<type default_value="1">select</type>
|
||||
@ -222,6 +223,7 @@
|
||||
</options>
|
||||
</item>
|
||||
</section>
|
||||
|
||||
<section name="Plugins">
|
||||
<item id="plugin_dir" advanced="true" config_section="plugins" restart="true">
|
||||
<name>Plugin Directory</name>
|
||||
|
Loading…
x
Reference in New Issue
Block a user