mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
🔃 Sync Hub v0.3
This commit is contained in:
@@ -74,16 +74,10 @@ function initDeviceSelectors() {
|
||||
}
|
||||
|
||||
}, 10);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Initiate dropdown
|
||||
function initSettingDropdown(settingKey, // Identifier for the setting
|
||||
@@ -95,29 +89,10 @@ function initSettingDropdown(settingKey, // Identifier for the setting
|
||||
{
|
||||
|
||||
var optionsHtml = ""
|
||||
|
||||
|
||||
if(settingKey == 'SYNC_plugins' || settingKey == 'VNDRPDT_WATCH')
|
||||
{
|
||||
console.log('getSettingOptions(settingKey)');
|
||||
console.log(getSettingOptions(settingKey));
|
||||
|
||||
}
|
||||
|
||||
|
||||
// NOTE {value} options to replace with a setting or SQL value are handled in the cacheSettings() function
|
||||
optionsArray = createArray(getSettingOptions(settingKey))
|
||||
|
||||
|
||||
if(settingKey == 'SYNC_plugins' || settingKey == 'VNDRPDT_WATCH')
|
||||
{
|
||||
console.log('settingKey');
|
||||
console.log(settingKey);
|
||||
console.log('valuesArray');
|
||||
console.log(valuesArray);
|
||||
console.log('optionsArray');
|
||||
console.log(optionsArray);
|
||||
}
|
||||
|
||||
// check if the result is a SQL query
|
||||
if(isSQLQuery(optionsArray[0]))
|
||||
{
|
||||
@@ -170,8 +145,6 @@ function hideUIelements(settingKey) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Data processors
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -235,7 +208,7 @@ function genListWithInputSet(data, valuesArray, targetField, nameTransformer) {
|
||||
|
||||
let selected = valuesArray.includes(item.id) ? 'selected' : '';
|
||||
|
||||
console.log(item);
|
||||
// console.log(item);
|
||||
|
||||
labelName = item.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user