Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Fixed template vars for "deleteold". Fixed parsing "deleteold" parameter. Stop "setState" overwriting "deletold" state on load.
bhoerdzn98f5c9018d15
diff --git a/htroot/CrawlStartExpert_p.html b/htroot/CrawlStartExpert_p.htmlindex 3811465cf..f41df2f0d 100644--- a/htroot/CrawlStartExpert_p.html+++ b/htroot/CrawlStartExpert_p.html@@ -35,14 +35,20 @@$('#rangeSubpath').isChecked()) {// restrict to sub-path / domain$('#mustmatch').disable();- $('#deleteoldoff, #deleteoldage').uncheck();- $('#deleteoldon').check();+ // skip these on initial load+ if (typeof cId !== 'undefined') {+ $('#deleteoldoff, #deleteoldage').uncheck();+ $('#deleteoldon').check();+ }} else if ($('#rangeWide').isChecked()) {// use Filter$('#mustmatch').enable();- $('#deleteoldon, #deleteoldage').uncheck();- $('#deleteoldoff').check();- if (cId === "rangeWide") { $('#mustmatch').focus(); }+ // skip these on initial load+ if (typeof cId !== 'undefined') {+ $('#deleteoldon, #deleteoldage').uncheck();+ $('#deleteoldoff').check();+ if (cId === "rangeWide") { $('#mustmatch').focus(); }+ }}}@@ -499,7 +505,7 @@</dl></fieldset>- <dt><input type="submit" name=countryMustMatchSwitch"crawlingstart" value="Start New Crawl Job" class="submitready"/></dt><dd></dd>+ <dt><input type="submit" name=countryMustdMatchSwitch"crawlingstart" value="Start New Crawl Job" class="submitready"/></dt><dd></dd></dl></fieldset></form>diff --git a/htroot/CrawlStartExpert_p.java b/htroot/CrawlStartExpert_p.javaindex 729913c44..84259ed56 100644--- a/htroot/CrawlStartExpert_p.java+++ b/htroot/CrawlStartExpert_p.java@@ -365,13 +365,13 @@ public class CrawlStartExpert_p {// delete any document before the crawl is started?if (post != null && post.containsKey("deleteold")) {- final String deleteold = post.get("deletold", "");+ final String deleteold = post.get("deleteold", "");if (deleteold.equalsIgnoreCase("on")){- post.put("deleteold_on", "1");+ prop.put("deleteold_on", "1");} else if (deleteold.equalsIgnoreCase("age")) {- post.put("deleteold_age", "1");+ prop.put("deleteold_age", "1");} else {- post.put("deleteold_off", "1");+ prop.put("deleteold_off", "1");}} else {prop.put("deleteold_off", "1");