make layer config option
This commit is contained in:
parent
84368d5dee
commit
99ec58bdb0
1 changed files with 4 additions and 2 deletions
|
@ -203,7 +203,7 @@ function loadItem(config) {
|
|||
var first
|
||||
formatInfo(config, ascroll)
|
||||
|
||||
response.data.layers[layer].forEach(annotation => {
|
||||
response.data.layers[config.layer].forEach(annotation => {
|
||||
if (config.user && annotation.user != config.user) {
|
||||
return
|
||||
}
|
||||
|
@ -248,7 +248,7 @@ function loadEdit(config) {
|
|||
formatInfo(config, ascroll)
|
||||
|
||||
response.data.clips.forEach(clip => {
|
||||
clip.layers[layer].forEach(annotation => {
|
||||
clip.layers[config.layer].forEach(annotation => {
|
||||
if (config.user && annotation.user != config.user) {
|
||||
return
|
||||
}
|
||||
|
@ -288,6 +288,8 @@ function loadEdit(config) {
|
|||
})
|
||||
}
|
||||
|
||||
config.layer = config.layer || layer
|
||||
|
||||
if (config.item) {
|
||||
loadItem(config)
|
||||
} else if (config.edit) {
|
||||
|
|
Loading…
Reference in a new issue