Icon selector

This commit is contained in:
jokob-sk
2024-12-04 21:03:35 +11:00
parent 989d5dde8a
commit e92d1bb0ad
8 changed files with 272 additions and 125 deletions

View File

@@ -180,6 +180,15 @@
<i class="fa-solid fa-dice" ></i>
</span>`;
}
// handle generate IP for new device
if (setting.setKey == "NEWDEV_devIcon") {
inlineControl += `<span class="input-group-addon pointer"
onclick="showIconSelection()"
title="${getString("Gen_Select")}">
<i class="fa-solid fa-chevron-down" ></i>
</span>`;
}
// Generate the input field HTML
@@ -412,14 +421,6 @@
, function(msg) {
showMessage (msg);
// clear session storage
setCache("#dropdownOwner","");
setCache("#dropdownDeviceType","");
setCache("#dropdownGroup","");
setCache("#dropdownLocation","");
setCache("#dropdownNetworkNodeMac","");
// Remove navigation prompt "Are you sure you want to leave..."
window.onbeforeunload = null;
@@ -438,15 +439,6 @@
});
}
// Helper function to clear dropdown cache
function clearDropdownCache() {
setCache("#dropdownOwner", "");
setCache("#dropdownDeviceType", "");
setCache("#dropdownGroup", "");
setCache("#dropdownLocation", "");
setCache("#dropdownNetworkNodeMac", "");
}
//-----------------------------------------------------------------------------------
// Disables or enables network configuration for the root node
function toggleNetworkConfiguration(disable) {