mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
DevDetails refactor
This commit is contained in:
@@ -113,7 +113,11 @@ $(function () {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Initiate dropdown
|
||||
function initSettingDropdown(settingKey, valuesArray, targetLocation, callbackToGenerateEntries, targetField)
|
||||
function initSettingDropdown(settingKey, // Identifier for the setting
|
||||
valuesArray, // Array of values to be pre-selected in the dropdown
|
||||
targetLocation, // ID of the HTML element where dropdown should be rendered (will be replaced)
|
||||
callbackToGenerateEntries, // Callback function to generate entries based on options
|
||||
targetField) // Target field or element where selected value should be applied or updated
|
||||
{
|
||||
|
||||
var optionsHtml = ""
|
||||
@@ -179,7 +183,7 @@ function generateList(data, valuesArray) {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Processor to generate a list
|
||||
function generatedevDetailsList(data, valuesArray, targetField) {
|
||||
function genDevDetailsList(data, valuesArray, targetField) {
|
||||
|
||||
var listHtml = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user