remote: fix /TABS and don't make panel send osc (#414)

This commit is contained in:
jean-emmanuel 2018-11-02 10:47:35 +01:00
parent da1212f37e
commit 21d7a738ab
2 changed files with 6 additions and 4 deletions

View file

@ -182,9 +182,10 @@ var callbacks = {
for (let id of args) {
let ws = widgetManager.getWidgetById(id)
for (let w of ws) {
DOM.each(document, `.tablink[data-widget="${w.hash}"]`, (el)=>{
DOM.dispatchEvent(el, 'fast-click', {})
})
if (w.getProp('type') === 'tab') {
var index = w.parent.children.indexOf(w)
w.parent.setValue(index, {sync: true, send: false})
}
}
}