Skip to content
Snippets Groups Projects
Commit 55c89e1f authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Fixing the instance_only check

parent 1a8a8fd9
No related branches found
No related tags found
1 merge request!151Bug/#140
Pipeline #5507 failed
...@@ -494,14 +494,16 @@ function addProperFilterToSearchComponents(targetId) { ...@@ -494,14 +494,16 @@ function addProperFilterToSearchComponents(targetId) {
let instance_only = baseElement.querySelectorAll( let instance_only = baseElement.querySelectorAll(
".instance_database_only" ".instance_database_only"
)[0]; )[0];
let checkbox_instance_only = instance_only.querySelector("input"); if (instance_only) {
if (checkbox_instance_only) { let checkbox_instance_only = instance_only.querySelector("input");
checkbox_instance_only.onclick = function() { if (checkbox_instance_only) {
if (this.checked) { checkbox_instance_only.onclick = function() {
//We have to retrieve all data-scr needed to make them pointed only on the instance. if (this.checked) {
//How to? //We have to retrieve all data-scr needed to make them pointed only on the instance.
} //How to?
}; }
};
}
} }
//MORE CRITERIAS //MORE CRITERIAS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment