added a possibility to define a custom network definition URL for remote

management
pull/1/head
cominch 12 years ago
parent fb0f430685
commit ad62609ec7

@ -65,9 +65,16 @@
#{networks}#
<option>#[network]#</option>
#{/networks}#
</select>
</select> <a href="#" onclick="document.getElementById('networkDefinitionURLfield').style.display = ''; return false;" style="font-style: italic;">Enter custom URL...</a>
</dd>
<span id="networkDefinitionURLfield" style="display: none;">
<dt>Remote Network Definition URL</dt>
<dd>
<input type="text" id="networkDefinitionURL" name="networkDefinitionURL" value="" size="100">
</select>
</dd>
</span>
<dt>Network Nick</dt>
<dd>#[network.unit.name]#</dd>
<dt>Long Description</dt>

@ -67,8 +67,13 @@ public class ConfigNetwork_p
"network settings");
if ( post.containsKey("changeNetwork") ) {
final String networkDefinition =
String networkDefinition =
post.get("networkDefinition", "defaults/yacy.network.freeworld.unit");
final String networkDefinitionURL =
post.get("networkDefinitionURL", "");
if ( !networkDefinitionURL.equals("")) {
networkDefinition = networkDefinitionURL;
}
if ( networkDefinition.equals(sb.getConfig("network.unit.definition", "")) ) {
// no change
commit = 3;

Loading…
Cancel
Save