remote: fix /TABS

This commit is contained in:
jean-emmanuel 2017-06-13 22:57:15 +02:00
parent 81d5651c19
commit b30fe4cb2c

View file

@ -45,9 +45,16 @@ var callbacks = {
}
},
'/TABS': function(args) {
for (let i in args) {
$(`[data-id="${args[i]}"]`).trigger('fake-click')
if (!Array.isArray(args)) args = [args]
for (let id of args) {
let ws = widgetManager.getWidgetById(id)
for (let w of ws) {
$(`.tablink[data-widget="${w.hash}"]`).trigger('fake-click')
}
}
}
}