make layer collapsed/expanded state sticky
This commit is contained in:
parent
52643a9218
commit
758c821d5a
7 changed files with 23 additions and 8 deletions
|
|
@ -231,6 +231,7 @@ pandora.ui.item = function() {
|
|||
: '',
|
||||
showAnnotations: pandora.user.ui.showAnnotations,
|
||||
showLargeTimeline: true,
|
||||
showLayers: pandora.user.ui.showLayers,
|
||||
subtitles: videoOptions.subtitles,
|
||||
tooltips: true,
|
||||
video: videoOptions.video,
|
||||
|
|
@ -328,6 +329,9 @@ pandora.ui.item = function() {
|
|||
toggleannotations: function(data) {
|
||||
pandora.UI.set('showAnnotations', data.showAnnotations);
|
||||
},
|
||||
togglelayer: function(data) {
|
||||
pandora.UI.set('showLayers.' + data.layer, !data.collapsed);
|
||||
},
|
||||
pandora_showannotations: function(data) {
|
||||
pandora.$ui.editor.options({showAnnotations: data.value});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue