I have tried the same on a DUI panel and it's returned properly as 6 (media_library_viewer).
Done the same with JSP3, same results.
function on_selection_changed() { console.log(fb.GetSelectionType()); }
Therefore I thought it would be reasonable to report it to you, since it seems to be a CUI bug. I suppose it has implications in the integration along other panels apart from JS scripts.
I believe the selection type also drives the 'Library viewer selection playlist' (which is currently not supported, of course). So there's a bit more thought required than just changing the selection type value.
This method from SMP https://theqwertiest.github.io/foo_spider_monkey_panel/assets/generated_files/docs/html/fb.html#.GetSelectionType Reports any selection from this panel as 0.
I have tried the same on a DUI panel and it's returned properly as 6 (media_library_viewer). Done the same with JSP3, same results.
function on_selection_changed() { console.log(fb.GetSelectionType()); }
Therefore I thought it would be reasonable to report it to you, since it seems to be a CUI bug. I suppose it has implications in the integration along other panels apart from JS scripts.