1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Search refinement and bugfixing

Fixes #242
This commit is contained in:
kkapsner 2018-09-19 09:15:19 +02:00
parent 2271477376
commit 5513bcbb61
4 changed files with 50 additions and 9 deletions

View file

@ -23,7 +23,22 @@
}
if (settingDefinition.options){
settingDefinition.options.forEach(function(option){
messages.push(settingDefinition.name + "_option." + option);
if (option !== null){
messages.push(settingDefinition.name + "_options." + option);
}
});
}
if (settingDefinition.inputs){
settingDefinition.inputs.forEach(function(input){
if (input){
if (input.options){
input.options.forEach(function(option){
if (option !== null){
messages.push(input.name + "_options." + option);
}
});
}
}
});
}
return messages;