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

View File

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