config.html: config options with multiple values have the same

html name, but different html id:s
Corrected some section errors in config.xml
This commit is contained in:
Anders Betnér 2006-05-17 14:28:39 +00:00
parent cb9598608b
commit 28e0956e66
2 changed files with 13 additions and 12 deletions

View File

@ -47,6 +47,7 @@ var ConfigXML = {
});
ConfigXML.config[section.getAttribute('name')] = items;
});
a=12;
}
};
var Config = {
@ -123,7 +124,7 @@ var Config = {
inputSize = 20;
// Yes, we're falling through
case 'long_text':
frag.appendChild(BuildElement.input(postId,
frag.appendChild(BuildElement.input(postId,postId,
item.name,
Config._getConfigOptionValue(itemId),
inputSize,
@ -138,7 +139,7 @@ var Config = {
case 'long_text_multiple':
Config._getConfigOptionValue(itemId,true).each(function (value,i) {
var span = document.createElement('span');
span.appendChild(BuildElement.input(postId+i,
span.appendChild(BuildElement.input(postId+i,postId,
item.name,
value,inputSize,
item.short_description
@ -217,7 +218,7 @@ var Config = {
}
}
var BuildElement = {
input: function(id,displayName,value,size,short_description,long_description) {
input: function(id,name,displayName,value,size,short_description,long_description) {
var frag = document.createDocumentFragment();
var label = document.createElement('label');
@ -226,7 +227,7 @@ var BuildElement = {
label.appendChild(document.createTextNode(displayName));
frag.appendChild(label);
frag.appendChild(Builder.node('input',{id: id,name: id,className: 'text',
frag.appendChild(Builder.node('input',{id: id,name: name,className: 'text',
value: value,size: size}));
frag.appendChild(document.createTextNode('\u00a0'));
frag.appendChild(document.createTextNode(short_description));

View File

@ -79,8 +79,8 @@
</item>
</section>
<section name="Music_Files" config_section="general">
<item id="mp3_dir">
<section name="Music_Files">
<item id="mp3_dir" config_section="general">
<name>MP3 Directory</name>
<short_description></short_description>
<type>long_text_multiple</type>
@ -119,8 +119,8 @@
</item>
</section>
<section name="Database" config_section="general">
<item id="db_type">
<section name="Database">
<item id="db_type" config_section="general">
<name>Database Type</name>
<short_description></short_description>
<type>select</type>
@ -159,8 +159,8 @@
</item>
</section>
<section name="Plugins" config_section="plugins">
<item id="plugin_dir">
<section name="Plugins">
<item id="plugin_dir" config_section="plugins">
<name>Plugin Directory</name>
<short_description></short_description>
<type>long_text</type>
@ -173,8 +173,8 @@
</item>
</section>
<section name="Transcoding" config_section="general">
<item id="ssc_prog">
<section name="Transcoding">
<item id="ssc_prog" config_section="general">
<name>SSC Program</name>
<short_description></short_description>
<type>long_text</type>