make layer collapsed/expanded state sticky

This commit is contained in:
rolux 2012-01-11 13:21:26 +05:30
commit 758c821d5a
7 changed files with 23 additions and 8 deletions

View file

@ -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});
}