add annotation highlights

This commit is contained in:
rolux 2018-10-09 18:30:25 +02:00
parent d7fa7efcbc
commit 93c654c014
3 changed files with 8 additions and 2 deletions

View file

@ -1148,6 +1148,7 @@
"level": "guest",
"ui": {
"annotationsCalendarSize": 128,
"annotationsHighlight": false,
"annotationsMapSize": 128,
"annotationsRange": "position",
"annotationsSize": 256,

View file

@ -1095,6 +1095,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"level": "guest",
"ui": {
"annotationsCalendarSize": 128,
"annotationsHighlight": false,
"annotationsMapSize": 128,
"annotationsRange": "all",
"annotationsSize": 256,

View file

@ -7,6 +7,7 @@ pandora.ui.editor = function(data) {
that = Ox.VideoAnnotationPanel({
annotationsCalendarSize: ui.annotationsCalendarSize,
annotationsHighlight: ui.annotationsHighlight,
annotationsMapSize: ui.annotationsMapSize,
annotationsRange: ui.annotationsRange,
annotationsSeparator: pandora.site.annotations.separator,
@ -138,6 +139,9 @@ pandora.ui.editor = function(data) {
Ox.Request.clearCache();
});
},
annotationshighlight: function(data) {
pandora.UI.set({annotationsHighlight: data});
},
annotationsrange: function(data) {
pandora.UI.set({annotationsRange: data.range});
},