User Preference: Entity List Default Radius

Add a new User Preference for the Default value of the Entity List Radius. This is available in the Edit menu. If changed, this value will be used as default Radius for the next time the script will be loaded.
This commit is contained in:
Alezia Kurdis 2020-11-11 23:41:31 -05:00 committed by GitHub
parent 38e15b6208
commit 428db065b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1679,7 +1679,11 @@ function loaded() {
} else {
document.getElementById("hmdmultiselect").style.display = "none";
}
} else if (data.type === "loadedColumnsSetup") {
} else if (data.type === "loadedConfigSetting") {
if (typeof(data.defaultRadius) === "number") {
elFilterRadius.value = data.defaultRadius;
onRadiusChange();
}
if (data.columnsData !== "NO_DATA" && typeof(data.columnsData) === "object") {
var isValid = true;
var originalColumnIDs = [];
@ -1731,7 +1735,7 @@ function loaded() {
window.addEventListener("resize", updateColumnWidths);
EventBridge.emitWebEvent(JSON.stringify({ type: 'loadColumnsConfigSetting' }));
EventBridge.emitWebEvent(JSON.stringify({ type: 'loadConfigSetting' }));
});
augmentSpinButtons();