remote: fix /TABS
This commit is contained in:
parent
81d5651c19
commit
b30fe4cb2c
1 changed files with 9 additions and 2 deletions
|
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue