From dbf2359c898413fd7314da2a6475c145ec2c6d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Betn=C3=A9r?= Date: Mon, 22 May 2006 20:46:29 +0000 Subject: [PATCH] Added alerts with results of a save. Added attributes to config.xml --- admin-root/config.js | 6 +++++- admin-root/config.xml | 26 +++++++++++++------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/admin-root/config.js b/admin-root/config.js index 8ac0d4a5..59ae20ec 100644 --- a/admin-root/config.js +++ b/admin-root/config.js @@ -324,7 +324,11 @@ var BuildElement = { } 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() { var postVars = []; diff --git a/admin-root/config.xml b/admin-root/config.xml index 36ca1dc0..cf2ed885 100644 --- a/admin-root/config.xml +++ b/admin-root/config.xml @@ -1,7 +1,7 @@
- + Server Name The name iTunes and other daap clients should see @@ -13,12 +13,12 @@ text - + Web Root text - + Port The port the server should run at; default is 3689 @@ -30,12 +30,12 @@ text - + Run As text - + Admin password The password for this administration interface. @@ -82,7 +82,7 @@
- + MP3 Directory text @@ -116,7 +116,7 @@
- + Database Type select @@ -125,12 +125,12 @@ - + Database Directory text - + Scan Type select @@ -140,14 +140,14 @@ - + Rescan Interval How often should mt-daapd look for new files? In seconds. text - + Always Scan select @@ -159,12 +159,12 @@
- + Plugin Directory text - + Plugins text