|
|
@ -14,15 +14,15 @@
|
|
|
|
function setStates(cId) {
|
|
|
|
function setStates(cId) {
|
|
|
|
// order matters!
|
|
|
|
// order matters!
|
|
|
|
// crawl start points
|
|
|
|
// crawl start points
|
|
|
|
if ($('#url').prop("checked")) {
|
|
|
|
if ($('#url').isChecked()) {
|
|
|
|
$('#crawlingURL').enable();
|
|
|
|
$('#crawlingURL').enable();
|
|
|
|
$('#sitemapURL, #crawlingFile').disable();
|
|
|
|
$('#sitemapURL, #crawlingFile').disable();
|
|
|
|
if (cId === "url") { $('#crawlingURL').focus(); }
|
|
|
|
if (cId === "url") { $('#crawlingURL').focus(); }
|
|
|
|
} else if ($('#sitemap').prop("checked")) {
|
|
|
|
} else if ($('#sitemap').isChecked()) {
|
|
|
|
$('#sitemapURL').enable();
|
|
|
|
$('#sitemapURL').enable();
|
|
|
|
$('#crawlingURL, #crawlingFile').disable();
|
|
|
|
$('#crawlingURL, #crawlingFile').disable();
|
|
|
|
if (cId === "sitemap") { $('#sitemapURL').focus(); }
|
|
|
|
if (cId === "sitemap") { $('#sitemapURL').focus(); }
|
|
|
|
} else if ($('#file').prop("checked")) {
|
|
|
|
} else if ($('#file').isChecked()) {
|
|
|
|
$('#crawlingFile').enable();
|
|
|
|
$('#crawlingFile').enable();
|
|
|
|
$('#crawlingURL, #sitemapURL').disable();
|
|
|
|
$('#crawlingURL, #sitemapURL').disable();
|
|
|
|
if (cId === "file") { $('#crawlingFile').focus(); }
|
|
|
|
if (cId === "file") { $('#crawlingFile').focus(); }
|
|
|
@ -30,14 +30,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
// Load Filters
|
|
|
|
// Load Filters
|
|
|
|
if (cId === "rangeDomain" || cId === "rangeSubpath" ||
|
|
|
|
if (cId === "rangeDomain" || cId === "rangeSubpath" ||
|
|
|
|
cId === "rangeWide") {
|
|
|
|
cId === "rangeWide" || typeof cId === 'undefined') {
|
|
|
|
if ($('#rangeDomain').prop("checked") ||
|
|
|
|
if ($('#rangeDomain').isChecked() ||
|
|
|
|
$('#rangeSubpath').prop("checked")) {
|
|
|
|
$('#rangeSubpath').isChecked()) {
|
|
|
|
// restrict to sub-path / domain
|
|
|
|
// restrict to sub-path / domain
|
|
|
|
$('#mustmatch').disable();
|
|
|
|
$('#mustmatch').disable();
|
|
|
|
$('#deleteoldoff, #deleteoldage').uncheck();
|
|
|
|
$('#deleteoldoff, #deleteoldage').uncheck();
|
|
|
|
$('#deleteoldon').check();
|
|
|
|
$('#deleteoldon').check();
|
|
|
|
} else if ($('#rangeWide').prop("checked")) {
|
|
|
|
} else if ($('#rangeWide').isChecked()) {
|
|
|
|
// use Filter
|
|
|
|
// use Filter
|
|
|
|
$('#mustmatch').enable();
|
|
|
|
$('#mustmatch').enable();
|
|
|
|
$('#deleteoldon, #deleteoldage').uncheck();
|
|
|
|
$('#deleteoldon, #deleteoldage').uncheck();
|
|
|
@ -47,26 +47,26 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// crawl start: From File
|
|
|
|
// crawl start: From File
|
|
|
|
if ($("#sitelist").prop("checked")) {
|
|
|
|
if ($("#sitelist").isChecked()) {
|
|
|
|
$('#rangeDomain').check();
|
|
|
|
$('#rangeDomain').check();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Delete only old
|
|
|
|
// Delete only old
|
|
|
|
if ($('#deleteoldage').prop("checked")) {
|
|
|
|
if ($('#deleteoldage').isChecked()) {
|
|
|
|
$('#deleteIfOlderNumber, #deleteIfOlderUnit').enable();
|
|
|
|
$('#deleteIfOlderNumber, #deleteIfOlderUnit').enable();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('#deleteIfOlderNumber, #deleteIfOlderUnit').disable();
|
|
|
|
$('#deleteIfOlderNumber, #deleteIfOlderUnit').disable();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Reload if old
|
|
|
|
// Reload if old
|
|
|
|
if ($('#reloadoldage').prop("checked")) {
|
|
|
|
if ($('#reloadoldage').isChecked()) {
|
|
|
|
$('#reloadIfOlderNumber, #reloadIfOlderUnit').enable();
|
|
|
|
$('#reloadIfOlderNumber, #reloadIfOlderUnit').enable();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('#reloadIfOlderNumber, #reloadIfOlderUnit').disable();
|
|
|
|
$('#reloadIfOlderNumber, #reloadIfOlderUnit').disable();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Use Must-Match List for Country Codes?
|
|
|
|
// Use Must-Match List for Country Codes?
|
|
|
|
if ($('#noCountryMustMatchSwitch').prop("checked")) {
|
|
|
|
if ($('#noCountryMustMatchSwitch').isChecked()) {
|
|
|
|
$('#countryMustMatchList').disable();
|
|
|
|
$('#countryMustMatchList').disable();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('#countryMustMatchList').enable();
|
|
|
|
$('#countryMustMatchList').enable();
|
|
|
@ -76,7 +76,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Maximum pages per domain
|
|
|
|
// Maximum pages per domain
|
|
|
|
if ($('#crawlingDomMaxCheck').prop("checked")) {
|
|
|
|
if ($('#crawlingDomMaxCheck').isChecked()) {
|
|
|
|
$('#crawlingDomMaxPages').enable();
|
|
|
|
$('#crawlingDomMaxPages').enable();
|
|
|
|
if (cId === "crawlingDomMaxCheck") {
|
|
|
|
if (cId === "crawlingDomMaxCheck") {
|
|
|
|
$('#crawlingDomMaxPages').focus();
|
|
|
|
$('#crawlingDomMaxPages').focus();
|
|
|
@ -86,7 +86,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Remote crawl
|
|
|
|
// Remote crawl
|
|
|
|
if ($('#crawlOrder').prop("checked")) {
|
|
|
|
if ($('#crawlOrder').isChecked()) {
|
|
|
|
$('#intention').enable();
|
|
|
|
$('#intention').enable();
|
|
|
|
if (cId === "crawlOrder") { $('#intention').focus(); }
|
|
|
|
if (cId === "crawlOrder") { $('#intention').focus(); }
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -121,6 +121,11 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Check DOM & properties if element is checkeds. */
|
|
|
|
|
|
|
|
$.fn.isChecked = function() {
|
|
|
|
|
|
|
|
return $(this).attr("checked") || $(this).prop("checked");
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** Set checked state for checkoxes/radio buttons. */
|
|
|
|
/** Set checked state for checkoxes/radio buttons. */
|
|
|
|
$.fn.check = function() {
|
|
|
|
$.fn.check = function() {
|
|
|
|
return this.each(function() {
|
|
|
|
return this.each(function() {
|
|
|
|