mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 14:43:21 -05:00
Added alerts with results of a save.
Added attributes to config.xml
This commit is contained in:
parent
f0ac0885a2
commit
dbf2359c89
@ -324,7 +324,11 @@ var BuildElement = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
function saved(req) {
|
function saved(req) {
|
||||||
alert(req.responseText);
|
if ('200' == Element.textContent(req.responseXML.getElementsByTagName('status')[0])) {
|
||||||
|
alert('Saved');
|
||||||
|
} else {
|
||||||
|
alert("Couldn't save and if this weren't a beta I'd tell you why");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function saveForm() {
|
function saveForm() {
|
||||||
var postVars = [];
|
var postVars = [];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<config>
|
<config>
|
||||||
<section name="Server">
|
<section name="Server">
|
||||||
<item id="servername" config_section="general">
|
<item id="servername" config_section="general" restart="true">
|
||||||
<name>Server Name</name>
|
<name>Server Name</name>
|
||||||
<short_description>
|
<short_description>
|
||||||
The name iTunes and other daap clients should see
|
The name iTunes and other daap clients should see
|
||||||
@ -13,12 +13,12 @@
|
|||||||
</long_description>
|
</long_description>
|
||||||
<type size="20">text</type>
|
<type size="20">text</type>
|
||||||
</item>
|
</item>
|
||||||
<item id="web_root" config_section="general">
|
<item id="web_root" config_section="general" required="true" restart="true">
|
||||||
<name>Web Root</name>
|
<name>Web Root</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type size="80" browse="directory">text</type>
|
<type size="80" browse="directory">text</type>
|
||||||
</item>
|
</item>
|
||||||
<item id="port" config_section="general">
|
<item id="port" config_section="general" required="true" restart="true">
|
||||||
<name>Port</name>
|
<name>Port</name>
|
||||||
<short_description>
|
<short_description>
|
||||||
The port the server should run at; default is 3689
|
The port the server should run at; default is 3689
|
||||||
@ -30,12 +30,12 @@
|
|||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type size="80" browse="file">text</type>
|
<type size="80" browse="file">text</type>
|
||||||
</item>
|
</item>
|
||||||
<item id="runas" config_section="general">
|
<item id="runas" config_section="general" required="true" restart="true">
|
||||||
<name>Run As</name>
|
<name>Run As</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type size="20">text</type>
|
<type size="20">text</type>
|
||||||
</item>
|
</item>
|
||||||
<item id="admin_pw" config_section="general">
|
<item id="admin_pw" config_section="general" required="true">
|
||||||
<name>Admin password</name>
|
<name>Admin password</name>
|
||||||
<short_description>
|
<short_description>
|
||||||
The password for this administration interface.
|
The password for this administration interface.
|
||||||
@ -82,7 +82,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section name="Music_Files">
|
<section name="Music_Files">
|
||||||
<item id="mp3_dir" config_section="general">
|
<item id="mp3_dir" config_section="general" required="true">
|
||||||
<name>MP3 Directory</name>
|
<name>MP3 Directory</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type size="80" multiple="true" add_item_label="Add mp3 directory" browse="directory">text</type>
|
<type size="80" multiple="true" add_item_label="Add mp3 directory" browse="directory">text</type>
|
||||||
@ -116,7 +116,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section name="Database">
|
<section name="Database">
|
||||||
<item id="db_type" config_section="general">
|
<item id="db_type" config_section="general" restart="true">
|
||||||
<name>Database Type</name>
|
<name>Database Type</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type default_value="sqlite">select</type>
|
<type default_value="sqlite">select</type>
|
||||||
@ -125,12 +125,12 @@
|
|||||||
<option value="sqlite3">sqlite3</option>
|
<option value="sqlite3">sqlite3</option>
|
||||||
</options>
|
</options>
|
||||||
</item>
|
</item>
|
||||||
<item id="db_parms" config_section="general">
|
<item id="db_parms" config_section="general" restart="true">
|
||||||
<name>Database Directory</name>
|
<name>Database Directory</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type size="80" browse="directory">text</type>
|
<type size="80" browse="directory">text</type>
|
||||||
</item>
|
</item>
|
||||||
<item id="scan_type" config_section="general">
|
<item id="scan_type" config_section="general" restart="true">
|
||||||
<name>Scan Type</name>
|
<name>Scan Type</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type default_value="2">select</type>
|
<type default_value="2">select</type>
|
||||||
@ -140,14 +140,14 @@
|
|||||||
<option value="2">2 - Painfully aggressive</option>
|
<option value="2">2 - Painfully aggressive</option>
|
||||||
</options>
|
</options>
|
||||||
</item>
|
</item>
|
||||||
<item id="rescan_interval" config_section="general">
|
<item id="rescan_interval" config_section="general" restart="true">
|
||||||
<name>Rescan Interval</name>
|
<name>Rescan Interval</name>
|
||||||
<short_description>
|
<short_description>
|
||||||
How often should mt-daapd look for new files? In seconds.
|
How often should mt-daapd look for new files? In seconds.
|
||||||
</short_description>
|
</short_description>
|
||||||
<type size="20">text</type>
|
<type size="20">text</type>
|
||||||
</item>
|
</item>
|
||||||
<item id="always_scan" config_section="general">
|
<item id="always_scan" config_section="general" restart="true">
|
||||||
<name>Always Scan</name>
|
<name>Always Scan</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type default_value="0">select</type>
|
<type default_value="0">select</type>
|
||||||
@ -159,12 +159,12 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section name="Plugins">
|
<section name="Plugins">
|
||||||
<item id="plugin_dir" config_section="plugins">
|
<item id="plugin_dir" config_section="plugins" restart="true">
|
||||||
<name>Plugin Directory</name>
|
<name>Plugin Directory</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type size="80" browse="directory">text</type>
|
<type size="80" browse="directory">text</type>
|
||||||
</item>
|
</item>
|
||||||
<item id="plugins" config_section="plugins">
|
<item id="plugins" config_section="plugins" restart="true">
|
||||||
<name>Plugins</name>
|
<name>Plugins</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type size="20" multiple="true" add_item_label="Add plugin">text</type>
|
<type size="20" multiple="true" add_item_label="Add plugin">text</type>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user