I try to change the current interface in Xibo 1.8.0 and I need to use JavaScript/jQuery. But, it seems I can’t use $(this). In the console.log I have only a “window” object.
And for example, when I try to get the id of the current object by “console.log(this.id);” by click, I get an “undefined” entry in the console.
I tried to change the sidebar for more lisibility by hiding sidebar-lists (css display none) and display expected list by clicking on the desired sidebarTitle.
In a new script when I try to get this by clicking on a sidebarTitle by console.log(this) or console.log($(this)) I can only get a window object.
So I can’t use $(this).next().toggle() for exemple to only display sidebarList after the choosen Title