*) re-added possibility to de-/select all parsers at one time (JS-only)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1828 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
auron_x 19 years ago
parent ae536c4608
commit 6f1d45aaa3

@ -1,4 +1,4 @@
<p><form action="SettingsAck_p.html" method="post" enctype="multipart/form-data">
<p><form name="parsersettings" action="SettingsAck_p.html" method="post" enctype="multipart/form-data">
<fieldset><legend id="parser">Content Parser Settings</legend>
<p>With this settings you can activate or deactivate parsing of additional content-types based on their MIME-types.<br>
For a detailed description of the various MIME-types take a look at <a href="http://www.iana.org/assignments/media-types/">http://www.iana.org/assignments/media-types/</a></p>
@ -29,15 +29,13 @@ For a detailed description of the various MIME-types take a look at <a href="htt
</tr>
#{/mime}#
#{/parser}#
<!--
<tr class="TableCellDark">
#{parserMode}#
<td class="small" align="center"><input type="checkbox" name="#[name]#.allParserEnabled" align="top" #(allParserEnabled)#::checked#(/allParserEnabled)#>
<td class="small" align="center"><input type="checkbox" name="#[name]#.allParserEnabled" align="top" onclick="javascript: ParserCheckboxes(this);" #(allParserEnabled)#::checked#(/allParserEnabled)#>
#{/parserMode}#
<td colspan="2" class="small" >Enable all parsers</td>
<td class="small">&nbsp;</td>
</tr>
-->
<tr class="TableCellDark">
<td colspan="#[parser.colspan]#" class="small" ><input type="submit" name="parserSettings" value="submit">&nbsp;Changes take effect immediately</td>
</tr>

@ -3,6 +3,21 @@
<head>
<title>YaCy '#[clientname]#': Settings</title>
#%env/templates/metas.template%#
<script language="JavaScript">
function ParserCheckboxes(reference)
{
var mode = reference.name.substring(0,reference.name.indexOf("."));
for(i=0; i<document.parsersettings.elements.length; i++)
{
if(document.parsersettings.elements[i].type=="checkbox" && document.parsersettings.elements[i].name.indexOf(mode) >= 0)
{
document.parsersettings.elements[i].checked=reference.checked;
}
}
}
</script>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#%env/templates/header.template%#

@ -273,6 +273,8 @@ public final class Settings_p {
// loop through the mimeTypes and add it to the properties
boolean[] allParsersEnabled = new boolean[configList.size()];
for (int i=0; i<configArray.length; i++)
allParsersEnabled[i] = true;
int parserIdx = 0;
Iterator availableParserIter = parserInfos.iterator();

Loading…
Cancel
Save